Skip to content

Commit c0aa045

Browse files
sospedrajav
authored andcommitted
Merge disable
1 parent 2dfc5a9 commit c0aa045

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ checkedImage | PropTypes.element | true | Default image | Custom checked Im
100100
unCheckedImage | PropTypes.element | true | Default image | Custom unchecked Image
101101
isChecked | PropTypes.bool | false | false | checkbox checked state
102102
onClick | PropTypes.func.isRequired | false | | callback function
103+
disabled | PropTypes.bool | true | false | Disable the checkbox button
103104

104105
## Contribution
105106

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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()}

0 commit comments

Comments
 (0)