import React from "react";
import { Switch as RNSwitch } from "react-native";

type Props = {
  disabled?: boolean;
  onChange?: (value: boolean) => void;
  value?: boolean;
};

const Switch = ({ disabled, onChange, value }: Props) => (
  <RNSwitch disabled={disabled} onValueChange={onChange} value={value} />
);

export default Switch;
