import React from 'react';
import {
  Switch as ReactNativeSwitch,
  SwitchProps as ReactNativeSwitchProps,
} from 'react-native';

export interface SwitchProps extends ReactNativeSwitchProps {}

export const Switch: React.FC<SwitchProps> = ({ ...otherProps }) => {
  return (
    <ReactNativeSwitch
      thumbColor={'#fff'}
      trackColor={{
        true: `${'rgba(102, 99, 250, 1)'}`,
        false: `${'#D4D4D4'}`,
      }}
      ios_backgroundColor={'#D4D4D4'}
      {...otherProps}
    />
  );
};
