Open minayaleon opened 5 years ago
Your onPress has no return, remove one set of curly brackets to add an implicit return:
onPress={value => setOption(value)}
Or explicitly return:
onPress={value => { return setOption(value); }}
thanks this solution worked for me as well.
onPress not select the radio when it use useState (hooks)
const [option, setOption] = useState(0);
onPress={value => { setOption(value); }}