react-native-checkbox
react-native-checkbox copied to clipboard
checked={true},Cannot deselect
When I use “checked={true}”,Selected by default,Cannot deselect, cannot operate。 I need to do it in some other way. Thanks
same issue
I believe you should do something like this .. we toggle checkbox state on OnChange.
<CheckBox label="My Label" onChange={checked => this.setState({ myState: !checked })} checked={this.state.myState} />