Replies: 2 comments 3 replies
-
Any updates for this question? |
Beta Was this translation helpful? Give feedback.
0 replies
-
if you are using controller, then you can invoke the onBlur prop: https://react-hook-form.com/api/usecontroller/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm coding a special
TextInput
for my form in React Native app. When user types some letter , the input will show some recommend results below it. After user selects the result, input will automatically blur and the value is set to the form. Here is my input looks like ( my app language is Vietnamese so it's a bit hard to understand)As you can see , the first one is my special
TextInput
, which shows some result after user types some letters. Here is my code for the screen which holds form and the input.SearchScreen.js
TextInput.js
(it's a bit complicated)What I want is programmatically blur the
TextInput
inside thatTouchableOpacity
to hide the keyboard. Is there any approach for this ?Beta Was this translation helpful? Give feedback.
All reactions