Skip to content

Commit 9c61790

Browse files
committed
fix: New version 0.1.13 with onCardPress fix
1 parent 046d6e2 commit 9c61790

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/CheckboxFlex.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ interface ICheckboxFlexProps {
4949
dateTextStyle?: CustomTextStyleProp;
5050
descriptionTextStyle?: CustomTextStyleProp;
5151
onPress?: (isActive?: boolean) => void;
52-
onCardPress?: () => void;
52+
onCardPress?: (isActive?: boolean) => void;
5353
}
5454

5555
interface IState {
@@ -83,7 +83,7 @@ export default class CheckboxFlex extends React.Component<
8383
handleCardPress = () => {
8484
if (!this.props.disableBuiltInActiveSystem) {
8585
this.setState({ isActive: !this.state.isActive }, () => {
86-
this.props.onPress && this.props.onPress(this.state.isActive);
86+
this.props.onCardPress && this.props.onCardPress(this.state.isActive);
8787
});
8888
} else {
8989
this.props.onCardPress && this.props.onCardPress();

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-checkbox-flex",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"description": "Fully customizable, easy to use checkbox with flexible component by React Native on Android and iOS",
55
"main": "./build/dist/CheckboxFlex.js",
66
"repository": "git@github.com:WrathChaos/react-native-checkbox-flex.git",

0 commit comments

Comments
 (0)