简体   繁体   中英

React Native - Hide keyboard on scroll

I am using Keyboard Aware ScrollView to wrap my content and avoid keyboard overflowing focused TextInput .

However, I wish to hide the keyboard if the user decides to scroll through the content. Currently, if that is the situation, the user can scroll through the contents freely, but the keyboard will not hide. Is this possible to achieve using this library?

根据react-native-keyboard-aware-scroll-view文档,此组件接受ScrollView,SectionList和FlatList默认道具,因此请尝试使用keyboardDismissMode道具并将其设置为“ on-drag”

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