import React from 'react'; import { StyleSheet, View, StyleProp, ViewStyle } from 'react-native'; import InteractiveBase from './InteractiveBase'; import { useTheme, Text } from 'native-base'; import { AddSquare, TickSquare } from 'iconsax-react-native'; interface CheckboxProps { title: string; color?: string; check: boolean; setCheck: (value: boolean) => void; style?: StyleProp; } const CheckboxBase: React.FC = ({ title, color, style, check, setCheck }) => { const { colors } = useTheme(); return ( { setCheck(!check); }} > {check ? ( ) : ( )} {title} ); }; const styles = StyleSheet.create({ container: { borderRadius: 8, }, content: { justifyContent: 'center', flexDirection: 'row', alignItems: 'center', paddingHorizontal: 10, paddingVertical: 5, }, text: { paddingLeft: 10, }, }); export default CheckboxBase;