im trying to change the state using this but everyTime it takes add function only how to make the state change onPress ..what can i do please let me know
const [statusss, setStatus] = React.useState(false);
onPress={() =>
setStatus(!statusss) ? props.remove(crypto) : props.add(crypto)
}