Keyboard module is used to control keyboard events.
import { Keyboard } from 'react-native'Add below code in render method.
render() { return <TextInput onSubmitEditing={Keyboard.dismiss} />; }
You can use -
keyboardKeyboard.dismiss() static dismiss() Dismisses the active keyboard and removes focus as per react native documents.