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 user9410919user94109191 Answer
Reset to default 7According 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'