1. Hiding the keyboard in response to a user tap

This method will allow the user to hide the keyboard when tapping anywhere outside of the TextInput's area.

Wrap the content of your page with a ScrollView(if it is not already), and add the keyboardDismissMode property:

                
  <ScrollView keyboardDismissMode="on-drag">
    <TextInput />
  </ScrollView>
            

2. Hiding the keyboard programatically

This allows the developer to hide the keyboard programatically from JS, whenever needed.

                
  import { Keyboard } from 'react-native';

  //anywhere
  Keyboard.dismiss();