File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ inactiveCardBackgroundColor?: string;
100
100
| inactiveCheckboxBackgroundColor | color | "transparent" | change the inactive checkbox container background color |
101
101
| activeCardBackgroundColor | color | "#2173FF" | change the active card container background color |
102
102
| activeCheckboxBackgroundColor | color | "#343c4d" | change the inactive card container background color |
103
+ | disableBuiltInActiveSystem | boolean | false | disable the built in active control system |
103
104
104
105
## Future Plans
105
106
Original file line number Diff line number Diff line change 13
13
"@freakycoder/react-native-bounceable" : " ^0.2.4" ,
14
14
"react" : " 16.13.1" ,
15
15
"react-native" : " 0.63.4" ,
16
- "react-native-checkbox-flex" : " ^0.1.0 " ,
16
+ "react-native-checkbox-flex" : " ^0.1.1 " ,
17
17
"react-native-linear-gradient" : " ^2.5.6"
18
18
},
19
19
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ interface ICheckboxFlexProps {
36
36
imageSource : any ;
37
37
description ?: string ;
38
38
titleNumberOfLines ?: number ;
39
+ disableBuiltInActiveSystem ?: boolean ;
39
40
style ?: CustomStyleProp ;
40
41
iconContainerStyle ?: CustomStyleProp ;
41
42
checkboxContainerStyle ?: CustomStyleProp ;
@@ -62,9 +63,11 @@ export default class CheckboxFlex extends React.Component<
62
63
}
63
64
64
65
handlePress = ( ) => {
65
- this . setState ( { isActive : ! this . state . isActive } , ( ) => {
66
- this . props . onPress && this . props . onPress ( this . state . isActive ) ;
67
- } ) ;
66
+ if ( ! this . props . disableBuiltInActiveSystem ) {
67
+ this . setState ( { isActive : ! this . state . isActive } , ( ) => {
68
+ this . props . onPress && this . props . onPress ( this . state . isActive ) ;
69
+ } ) ;
70
+ }
68
71
} ;
69
72
70
73
/* -------------------------------------------------------------------------- */
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-checkbox-flex" ,
3
- "version" : " 0.1.0 " ,
3
+ "version" : " 0.1.1 " ,
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