Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native - how to prevent keyboard show/hide toggle between fields

Tags:

react-native

So I have some input fields, and as I fill text in one field, and click on another, the keyboard hides and I have to click on the field again to make the keyboard show again.

Is there a way to fix this?

Thanks

like image 621
Raheel Hasan Avatar asked Jan 23 '26 00:01

Raheel Hasan


1 Answers

In scroll view you should add keyboardShouldPersistTaps property. Try with handled or 'always' values. Here is the link of react native documentation

<ScrollView keyboardShouldPersistTaps='handled'>
    //TextInputs ...
</ScrollView>
like image 62
LHIOUI Avatar answered Jan 24 '26 13:01

LHIOUI