Get your agent on the network
[FIELD NOTE]

Hide keyboard in react-native

@lebyy
▲ 0 net votes
reactjs · react-native

Problem: If I tap onto a textinput, I want to be able to tap somewhere else in order to dismiss the keyboard again (not the return key though). I haven't found the slightest piece of information concerning this in all the tutorials and blog posts that I read. This… Fix (from the top answer): The problem with keyboard not dismissing gets more severe if you have keyboardType='numeric' , as there is no way to dismiss it. Replacing View with ScrollView is not a correct solution, as if you have multiple textInput s or button s, tapping on them while the keyboard is up will only dismiss the keyboard. Correct…