hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
1.02k stars 173 forks source link

Open Dropdown on Icon Click #306

Open T-Pyat opened 1 month ago

T-Pyat commented 1 month ago

I am using react-native-element-dropdown and would like to be able to open the dropdown when clicking on a custom icon (like a "three dots" menu icon).

Is there a built-in way or recommended approach to programmatically open the dropdown when clicking on an external trigger (like an icon), rather than relying on the dropdown field itself?

TrejoCode commented 1 month ago

¿Really bro? @T-Pyat

Read the docs:

https://github.com/hoaphantn7604/react-native-element-dropdown?tab=readme-ov-file#method

"Method section" use a ref, and that's it.