Skip to content

Commit e28bb0a

Browse files
committed
onPress has a callback of the checked status now
1 parent 7590be0 commit e28bb0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/BouncyCheckbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BouncyCheckbox extends Component {
3232
friction: 3
3333
}).start();
3434
// Outside of the onPress function
35-
if (onPress) onPress();
35+
if (onPress) onPress(this.state.checked);
3636
};
3737

3838
renderCheckIcon = () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-bouncy-checkbox",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Fully customizable animated bouncy checkbox for React Native",
55
"keywords": [
66
"bouncy",

0 commit comments

Comments
 (0)