react-native-check-box icon indicating copy to clipboard operation
react-native-check-box copied to clipboard

componentWillReceiveProps needed.

Open hasanmumin opened this issue 8 years ago • 7 comments

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.

hasanmumin avatar Dec 21 '16 20:12 hasanmumin

Works, but in my case the state command set like this: this.setState({isChecked: nextProps.isChecked})

ronzilca avatar Jan 03 '17 15:01 ronzilca

yes, my code just a sample.

hasanmumin avatar Jan 05 '17 09:01 hasanmumin

Thank you soooo much.I've been stuck here for quite a long time...

captain991 avatar Apr 28 '17 06:04 captain991

Any plan to implement this soon ?

QQizi avatar Jan 02 '18 03:01 QQizi

Need this as well please

jaredmahan avatar Jan 03 '18 14:01 jaredmahan

It is very interesting.... Already more than 1 year is passed but the problem is not solved yet. Please fix this

DavitVosk avatar Jun 21 '18 10:06 DavitVosk

Guys you can use https://github.com/DavitVosk/react-native-check-box.git fork

DavitVosk avatar Jun 21 '18 11:06 DavitVosk