react-native-check-box
react-native-check-box copied to clipboard
componentWillReceiveProps needed.
Hi, i try to use your component, but you forget add componentWillReceiveProps method. Because when i set checked state from my form, it still going with own current state. For checked props you can add;
componentWillReceiveProps(nextProps) {
this.setState({isChecked: nextProps.checked})
}
Happy Coding.
Works, but in my case the state command set like this:
this.setState({isChecked: nextProps.isChecked})
yes, my code just a sample.
Thank you soooo much.I've been stuck here for quite a long time...
Any plan to implement this soon ?
Need this as well please
It is very interesting.... Already more than 1 year is passed but the problem is not solved yet. Please fix this
Guys you can use https://github.com/DavitVosk/react-native-check-box.git fork