2

it is really annoying, when I write text in one TextInput, then I tap on another TextInput to get focus with keyboard ready and it only hides the keyboard. How to overcome this behavior? All I want is to tap on TextInput and to have keyboard ready immediately.

Thanks for any advice!

1 Answer 1

4

Are your TextInputs in a ScrollView?

You need to add keyboardShouldPersistTaps={true} to you ScrollView.

keyboardShouldPersistTaps bool:

When false, tapping outside of the focused text input when the keyboard is up dismisses the keyboard. When true, the scroll view will not catch taps, and the keyboard will not dismiss automatically. The default value is false.

See Can't tap from one TextInput to another.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.