File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
# react-native-checkbox-component
2
2
3
- [ ![ release] ( https://img.shields.io/badge/release-v1.0.2 -blue.svg?maxAge=2592000?style=flat-square )] ( https://github.com/bgoyal2222/react-native-checkbox-component/releases )
4
- [ ![ NPM version] ( https://img.shields.io/badge/npm%20package-v1.0.2 -green.svg?style=flat )] ( https://www.npmjs.com/package/react-native-checkbox-component )
3
+ [ ![ release] ( https://img.shields.io/badge/release-v1.0.3 -blue.svg?maxAge=2592000?style=flat-square )] ( https://github.com/bgoyal2222/react-native-checkbox-component/releases )
4
+ [ ![ NPM version] ( https://img.shields.io/badge/npm%20package-v1.0.3 -green.svg?style=flat )] ( https://www.npmjs.com/package/react-native-checkbox-component )
5
5
[ ![ PRs Welcome] ( https://img.shields.io/badge/PRs-Welcome-brightgreen.svg )] ( https://github.com/bgoyal2222/react-native-checkbox-component/pulls )
6
6
[ ![ License MIT] ( http://img.shields.io/badge/license-MIT-orange.svg?style=flat )] ( https://github.com/bgoyal2222/react-native-checkbox-component/blob/master/LICENSE )
7
7
@@ -77,7 +77,7 @@ checkedComponent | PropTypes.element | true | Icon | Custom checked Compone
77
77
unCheckedComponent | PropTypes.element | true | Icon | Custom unchecked Component
78
78
isChecked | PropTypes.bool | false | false | checkbox checked state
79
79
onClick | PropTypes.func | false | | callback function
80
- key | PropTypes.number |false| |key to return in onClick callback
80
+ index | PropTypes.number |false| |key to return in onClick callback
81
81
disabled | PropTypes.bool | true | false | Disable the checkbox button
82
82
checkBoxColor | PropTypes.string | true | | Tint color of the checkbox image (this props is for both checked and unchecked state)
83
83
checkedCheckBoxColor | PropTypes.string | true | | Tint color of the checked state checkbox image (this prop will override value of ` checkBoxColor ` for checked state)
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default class CheckBox extends Component {
42
42
checkedCheckBoxColor : PropTypes . string ,
43
43
uncheckedCheckBoxColor : PropTypes . string ,
44
44
disabled : PropTypes . bool ,
45
- key :PropTypes . number
45
+ index :PropTypes . number
46
46
}
47
47
static defaultProps = {
48
48
isChecked : false ,
@@ -63,7 +63,7 @@ export default class CheckBox extends Component {
63
63
this . setState ( {
64
64
isChecked : checkboxState
65
65
} )
66
- this . props . onClick ( checkboxState , this . props . key ) ;
66
+ this . props . onClick ( checkboxState , this . props . index ) ;
67
67
}
68
68
_renderLeft ( ) {
69
69
if ( this . props . leftTextView ) return this . props . leftTextView ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-checkbox-component" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " Custom checkbox component for react native, it works on iOS and Android like a charm." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
12
12
},
13
13
"keywords" : [
14
14
" react-native" ,
15
+ " react-native-checkbox-component" ,
15
16
" react-native-custom-check-box" ,
16
17
" react-native-component" ,
17
18
" react-native-checkbox" ,
You can’t perform that action at this time.
0 commit comments