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

Tap outside to close Dropdown

Open maniish opened this issue 1 year ago • 1 comments

I have tried to use TouchableWithoutFeedback for closing Dropdown when clicked outside. I have wrapped it outside View (page). But when I click on dropdown or select item, it delays the output (like selection/open).

Am I doing anything wrong? How can we achieve this like other dropdown components.

maniish avatar Oct 10 '23 14:10 maniish

Your idea is correct, but if you cover the whole screen, you can press it to catch it and turn it off. You can use TouchableOpacity with actionOpacity={1} and Pressable.

Hoshiiii2602 avatar Dec 08 '23 04:12 Hoshiiii2602