File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ interface ICheckboxFlexProps {
49
49
dateTextStyle ?: CustomTextStyleProp ;
50
50
descriptionTextStyle ?: CustomTextStyleProp ;
51
51
onPress ?: ( isActive ?: boolean ) => void ;
52
- onCardPress ?: ( ) => void ;
52
+ onCardPress ?: ( isActive ?: boolean ) => void ;
53
53
}
54
54
55
55
interface IState {
@@ -83,7 +83,7 @@ export default class CheckboxFlex extends React.Component<
83
83
handleCardPress = ( ) => {
84
84
if ( ! this . props . disableBuiltInActiveSystem ) {
85
85
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 ) ;
87
87
} ) ;
88
88
} else {
89
89
this . props . onCardPress && this . props . onCardPress ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-checkbox-flex" ,
3
- "version" : " 0.1.12 " ,
3
+ "version" : " 0.1.13 " ,
4
4
"description" : " Fully customizable, easy to use checkbox with flexible component by React Native on Android and iOS" ,
5
5
"main" : " ./build/dist/CheckboxFlex.js" ,
6
6
"repository" : " git@github.com:WrathChaos/react-native-checkbox-flex.git" ,
You can’t perform that action at this time.
0 commit comments