chymtt / ReactNativeDropdownAndroid

A simple wrapper for Android's Spinner in react-native
MIT License
61 stars 22 forks source link

Index and values #13

Closed Lucagtii closed 8 years ago

Lucagtii commented 8 years ago

How I can set my custom unique index for each values, e.g.: 2 itme1 5 item2 6 item3 9 item4

Thanks, Luca.

chymtt commented 8 years ago

I don't quite understand your need, but I think you can try using a dictionary to manage the index for each value, since the component doesn't support unique index

Lucagtii commented 8 years ago

Yes i mean exactly that. Usually select and dropdown allow to specify index and value. Ok, so I've used as workaround a search by item(string) on server side. Thank you @chymtt !