最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - React Native - Hide keyboard on scroll - Stack Overflow

programmeradmin3浏览0评论

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?

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?

Share Improve this question asked Jan 24, 2019 at 22:59 user9410919user9410919
Add a ment  | 

1 Answer 1

Reset to default 7

According to react-native-keyboard-aware-scroll-view documentation this ponent accepts ScrollView, SectionList and FlatList default props, so try using keyboardDismissMode prop and set it to 'on-drag'

发布评论

评论列表(0)

  1. 暂无评论