react-native-element-dropdown icon indicating copy to clipboard operation
react-native-element-dropdown copied to clipboard

Should return index in onChange

Open ydv0121 opened this issue 2 years ago • 1 comments

Hello Thanks for the perfect DropDown.

I think the DropDown's onChange function should return the index value too onChange={(item,index)=>{}}

ydv0121 avatar Jul 13 '22 09:07 ydv0121

hi @ydv0121 , You can filter the data list to find the index.

hoaphantn7604 avatar Jul 26 '22 08:07 hoaphantn7604

this actually prevents using async options which would be cool with multi dropdown search... search is not only convenience of the front, it could be used to optimize stuff. would love this feature

nvacheishvili avatar Oct 08 '22 02:10 nvacheishvili

Please implement this feature if possible. I am also looking for it. Instead of looping through the list

aurangs7 avatar Apr 19 '24 09:04 aurangs7