$ cnpm install react-native-dismiss-keyboard
A simple way to dismiss the keyboard programmatically in a react native application. A demo app can be found here.
npm install react-native-dismiss-keyboard --savevar dismissKeyboard = require('react-native-dismiss-keyboard');import dismissKeyboard from 'react-native-dismiss-keyboard';dismissKeyboard() anywhere in your code to close the keyboard.| React Native Version | react-native-dismiss-keyboard Version |
|---|---|
| >= 11 & < 23 | < 1.0 |
| >= 23 | >= 1.0 |
If you experience any restrictions or if it works on other versions, please let us know.
Please make sure to run the tests before proposing a PR by running npm test.
Copyright 2013 - present © cnpmjs.org | Home |