sajin nambiar
sajin nambiar

Reputation: 589

Disable keyboard dismiss from screen when focusout from Textinput - react native

I would like to know if there is a way to show keyboard always if it focuses out from the TextInput in react native.

Upvotes: 0

Views: 2590

Answers (1)

Vahid Boreiri
Vahid Boreiri

Reputation: 3438

You can wrap your TextInput by a ScrollView and then use the keyboardShouldPersistTaps='handled' prop in ScrollView to avoid dismissing the keyboard and handle the keyboard dismiss by using Keyboard.dismiss() function in somewhere else. Read this for more documentation.

Upvotes: 1

Related Questions