File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,11 @@ export default class PickerAndroid extends React.Component{
173173 }
174174
175175 _onValueChange ( ) {
176- //the current picked label was more expected to be passed
176+ //the current picked label was more expected to be passed,
177+ //but PickerIOS only passed value, so we set label to be the second argument
177178 //add by zooble @2015-12-10
178179 var curItem = this . state . items [ this . index ] ;
179- this . props . onValueChange && this . props . onValueChange ( curItem . label , curItem . value , this . index ) ;
180+ this . props . onValueChange && this . props . onValueChange ( curItem . value , curItem . label ) ;
180181 }
181182
182183 render ( ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-picker-android" ,
3- "version" : " 0.3.0 " ,
3+ "version" : " 0.3.1 " ,
44 "description" : " react-native-picker-android" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments