import React, { useState } from 'react'; import { CheckBox, Icon } from 'react-native-elements'; import { Header } from '../components/header'; type CheckboxComponentProps = {}; const CheckboxComponent: React.FunctionComponent = () => { const [check1, setCheck1] = useState(false); const [check2, setCheck2] = useState(false); const [check3, setCheck3] = useState(false); const [check4, setCheck4] = useState(false); return ( <>
setCheck1(!check1)} /> setCheck2(!check2)} /> setCheck3(!check3)} /> } uncheckedIcon={ } checked={check4} onPress={() => setCheck4(!check4)} /> ); }; export default CheckboxComponent;