chymtt / ReactNativeDropdownAndroid

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

Open via button #19

Open terrysahaidak opened 8 years ago

terrysahaidak commented 8 years ago

Hi. Thank you for your work!

I'm searching for Spinner component which can be opened by button instead text spinner. Is it possible to do with your component?

chymtt commented 8 years ago

Hi @terrysahaidak I believe that it is possible to do, but I'm afraid I'm not inclined to implement that feature, since I'll have to maintain a prop like open={true} or something like that, since you can't call method on react UI components. I suggest you fork my repo and implement that, with an additional prop and event to maintain the open/close state of the spinner.

vonovak commented 7 years ago

I have eventually opted for using https://github.com/aakashns/react-native-dialogs