UNPKG

react-native-dismiss-keyboard

Version:

A simple way to dismiss the keyboard programmatically in a react native application.

14 lines (10 loc) 335 B
Object.defineProperty(exports, '__esModule', { value: true }); exports.default = dismissKeyboard; var _reactNative = require('react-native'); var TextInputState = _reactNative.TextInput.State; function dismissKeyboard() { TextInputState.blurTextInput(TextInputState.currentlyFocusedField()); } module.exports = exports.default;