react-native-bouncy-checkbox
react-native-bouncy-checkbox copied to clipboard
Add bind isChecked to onPress
trafficstars
Hi.
I add bind to isChecked prop. Because when isChecked is defined as props from an app example: <BouncyCheckbox isChecked={someValue} />, and onPress action happened it don't see that isChecked is defined and set new checked (by toggling current checked value) regardless of isChecked prop. And we have two different states - lib state checked for example is false and app state checked for example is true. It means we have unchecked (false) checkbox on screen and checked (true) state app value.
Please check the changes, thanks!