react-native-bouncy-checkbox icon indicating copy to clipboard operation
react-native-bouncy-checkbox copied to clipboard

Add bind isChecked to onPress

Open vladbelozertsev opened this issue 1 year ago • 3 comments
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!

vladbelozertsev avatar May 30 '24 12:05 vladbelozertsev