const NewPlaceScreen = props => { const [appleChecked,setAppleChecked] = useState(false); const [kiwiChecked,setKiwiChecked] = useState(false); return ( iconRight right title='apple' checked={appleChecked} // use the apple-specific state OnPress={() => setAppleChecked(prevState => !prevState)} // use the new apple state function /> iconRight right title='kiwi' checked={kiwiChecked} // use the new kiwi state OnPress={() => setKiwiChecked(prevState => !prevState)} // use the new kiwi function />