Skip to content

Commit 44d3d01

Browse files
committed
fix: onPress prop is optional now
1 parent 362169a commit 44d3d01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/BouncyCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface IBouncyCheckboxProps extends TouchableOpacityProps {
3535
checkIconImageSource?: Image;
3636
textContainerStyle?: CustomStyleProp;
3737
TouchableComponent?: any;
38-
onPress: (isChecked?: boolean) => void;
38+
onPress?: (isChecked?: boolean) => void;
3939
}
4040

4141
interface IState {

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": "2.1.4",
3+
"version": "2.1.5",
44
"description": "Fully customizable animated bouncy checkbox for React Native",
55
"keywords": [
66
"bouncy",

0 commit comments

Comments
 (0)