import colors from '@app/styles/colors' import React from 'react' import { Switch, StyleSheet } from 'react-native' import SettingsItem, { SettingsItemProps } from './SettingsItem' export type SettingsSwitchProps = SettingsItemProps & { value: boolean setValue: (value: boolean) => void } const SettingsSwitch = React.memo(props => { const { value, setValue } = props return ( setValue(!value)} {...props}> ) }) const styles = StyleSheet.create({ switch: { marginLeft: 20, }, }) export default SettingsSwitch