File tree 2 files changed +3
-0
lines changed 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ checkedImage | PropTypes.element | true | Default image | Custom checked Im
100
100
unCheckedImage | PropTypes.element | true | Default image | Custom unchecked Image
101
101
isChecked | PropTypes.bool | false | false | checkbox checked state
102
102
onClick | PropTypes.func.isRequired | false | | callback function
103
+ disabled | PropTypes.bool | true | false | Disable the checkbox button
103
104
104
105
## Contribution
105
106
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export default class CheckBox extends Component {
33
33
onClick : PropTypes . func . isRequired ,
34
34
isChecked : PropTypes . bool . isRequired ,
35
35
checkBoxColor : PropTypes . string ,
36
+ disabled : PropTypes . bool ,
36
37
}
37
38
static defaultProps = {
38
39
isChecked : false ,
@@ -77,6 +78,7 @@ export default class CheckBox extends Component {
77
78
style = { this . props . style }
78
79
onPress = { this . props . onClick }
79
80
underlayColor = 'transparent'
81
+ disabled = { this . props . disabled }
80
82
>
81
83
< View style = { styles . container } >
82
84
{ this . _renderLeft ( ) }
You can’t perform that action at this time.
0 commit comments