简体   繁体   中英

In react-native: How to dismiss dropdown menu View, on clicking screen outside of this dropdown menu inside functional component

I uses functional component to create below dropdown View, which I want to dismiss it on clicking anywhere in screen outside of this View.

在此处输入图片说明

use this package

react-native-element-dropdown here is the link

https://www.npmjs.com/package/react-native-element-dropdown

I'm also using this package, a small video is also below.

https://drive.google.com/file/d/1b_QREC4JiMI5YCwFHPLsnraSoqvDrJ5C/view

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM