You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| text | string | undefined | set the checkbox's text |
79
+
| onPress | function | null | set your own onPress functionality after the bounce effect, callback receives the next `isChecked` boolean if disableBuiltInState is false |
80
+
| disableText | boolean | false | if you want to use checkbox without text, you can enable it |
81
+
| size | number | 25 | size of `width` and `height` of the checkbox |
| isChecked | boolean | false | set the default checkbox value |
86
+
| fillColor | color | #f09f48 | change the checkbox's filled color |
87
+
| unfillColor | color | transparent | change the checkbox's un-filled color when it's not checked |
88
+
| useNativeDriver | boolean | true | enable/disable the useNativeDriver for animation |
89
+
| iconComponent | component | Icon | set your own icon component |
90
+
| checkIconImageSource | image | default | set your own check icon image |
91
+
| ImageComponent | component | Image | set your own Image component instead of RN's default Image |
92
+
| bounceEffect | number | 1 | change the bounce effect |
93
+
| bounceFriction | number | 3 | change the bounce friction |
94
+
| disableBuiltInState | boolean | false | if you want to manually handle the `isChecked` prop and disable built in handling |
94
95
95
96
## Synthetic Press Functionality with Manual Check State
96
97
@@ -101,7 +102,7 @@ import BouncyCheckbox from "react-native-bouncy-checkbox";
101
102
102
103
Please check the `example-manual-state` runable project to how to make it work on a real project.
103
104
104
-
<b><i>Becareful while using `disableBuiltInState` you MUST set the `isChecked` prop to use your own check state manually.</b></i>
105
+
<b><i>Becareful while using `disableBuiltInState` you MUST set the `isChecked` prop to use your own check state manually.</b></i> The `onPress` callback will **NOT** receive the next `isChecked` when `disableBuiltInState` is used.
0 commit comments