Catch the tap in a React Native ScrollView while the keyboard is up

Is it possible to catch taps on a React Native ScrollView when a keyboard is inserted? Or some reagent container for this?

I see the ScrollView property keyboardShouldPersistTaps and keyboardDismissMode , which allows me to control how the taps are processed when the keyboard is inserted. But no combination allows you to handle the cranes normally.

A use case is a search field in which the search is updated when a key is pressed. When the entry appears in the list below the input and the user closes it, I want the application to respond to this answer. Now he just fired the keyboard and the user pressed again.

+5
source share
2 answers

Looks like I answered my own question; setting keyboardShouldPersistTaps to 'always' or 'handled' in a ScrollView will pass cranes to the components in this ScrollView, even when the keyboard is up,

+5
source

You need to add keyboardShouldPersistTaps to "always" in the list too.

Check this answer:

fooobar.com/questions/845272 / ...

0
source

Source: https://habr.com/ru/post/1241963/


All Articles