import RNCheckBox from '@react-native-community/checkbox'; import { StyleProp, TouchableOpacity, ViewStyle } from 'react-native'; import { Text } from '../../components/form/Text'; import { tw } from '../../core/tailwind'; type Props = React.ComponentProps & { value: boolean; label?: string; labelStyle?: StyleProp; onValueChange?: (value: boolean) => void; containerStyle?: StyleProp; }; export function CheckBox({ value, label, labelStyle, onValueChange, containerStyle, ...restProps }: Props) { const onChange = () => { onValueChange && onValueChange(!value); }; return ( {label ? {label} : null} ); }