Friday, May 17, 2024
180
rated 0 times [  187] [ 7]  / answers: 1 / hits: 41697  / 7 Years ago, thu, april 13, 2017, 12:00:00

How to know when the focus is lost in a react native textInput?



For example I want to do an action when the user touches outside the textInput and it loses focus.


More From » react-native

 Answers
1

The prop you are looking for is the onBlur. This is called when it loses focus.


[#58155] Wednesday, April 12, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anyssaarielles

Total Points: 415
Total Questions: 107
Total Answers: 92

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
;