File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 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
100100unCheckedImage | PropTypes.element | true | Default image | Custom unchecked Image
101101isChecked | PropTypes.bool | false | false | checkbox checked state
102102onClick | PropTypes.func.isRequired | false | | callback function
103+ disabled | PropTypes.bool | true | false | Disable the checkbox button
103104
104105## Contribution
105106
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export default class CheckBox extends Component {
3434 isChecked : PropTypes . bool . isRequired ,
3535 isIndeterminate : PropTypes . bool . isRequired ,
3636 checkBoxColor : PropTypes . string ,
37+ disabled : PropTypes . bool ,
3738 }
3839 static defaultProps = {
3940 isChecked : false ,
@@ -88,6 +89,7 @@ export default class CheckBox extends Component {
8889 style = { this . props . style }
8990 onPress = { this . props . onClick }
9091 underlayColor = 'transparent'
92+ disabled = { this . props . disabled }
9193 >
9294 < View style = { styles . container } >
9395 { this . _renderLeft ( ) }
You can’t perform that action at this time.
0 commit comments