Problem in show checkbox in react-native-checkbox component
Just change the OnChange function to this:
onChange() {
if (this.props.onChange) {
this.setState({
internalChecked: !this.state.internalChecked,
source: this.state.source == CB_DISABLED_IMAGE ? CB_ENABLED_IMAGE : CB_DISABLED_IMAGE,
})
}
}
if (this.props.onChange) {
this.setState({
internalChecked: !this.state.internalChecked,
source: this.state.source == CB_DISABLED_IMAGE ? CB_ENABLED_IMAGE : CB_DISABLED_IMAGE,
})
}
}
Page of Component:
https://github.com/sconxu/react-native-checkbox
https://github.com/sconxu/react-native-checkbox