2

The below given code is working on first time and on second time click on same text input it is not working ( keyboard opening again ). Because the text input is already focused and i am using custom number buttons for input.

TextInput onFocus={Keyboard.dismiss()}

Any suggestions? Problem in react native.

2 Answers 2

2

<TextInput showSoftInputOnFocus={false}/>

Use showSoftInputOnFocus. reference

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

Comments

0

use can use onKeyPress event, which gets called on every keypress on the textinput

https://facebook.github.io/react-native/docs/textinput#onkeypress

<TextInput onKeyPress={Keyboard.dismiss()}/>

1 Comment

Sry wrong interpretation. I have edited my question.

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.