Skip to content

Commit 05e9238

Browse files
committed
Merge disable
1 parent 794b4d3 commit 05e9238

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
@@ -33,6 +33,7 @@ export default class CheckBox extends Component {
3333
onClick: PropTypes.func.isRequired,
3434
isChecked: PropTypes.bool.isRequired,
3535
checkBoxColor: PropTypes.string,
36+
disabled: PropTypes.bool,
3637
}
3738
static defaultProps = {
3839
isChecked: false,
@@ -77,6 +78,7 @@ export default class CheckBox extends Component {
7778
style={this.props.style}
7879
onPress={this.props.onClick}
7980
underlayColor='transparent'
81+
disabled={this.props.disabled}
8082
>
8183
<View style={styles.container}>
8284
{this._renderLeft()}

0 commit comments

Comments
 (0)