beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 786 forks source link

On android for similiar values picker returns value at first occurrence #363

Open waris117 opened 5 years ago

waris117 commented 5 years ago

In android if you are using single picker view for values like ["apple", "Orange", "apple"] then in picker view you will see all three values but when you pick last 3rd apple values, it will return you first one and 0 index, it should return 3rd one with index 2. on ios its working fine.

waris117 commented 5 years ago

it should return selected row of picker, rather then index of array value. get index of value from array will always return first value in ["apple", "Orange", "apple"], if user selects apple at 3rd row, picker returns index of apple at row 0 because its looking for index of value apple rather then returning selected row.