react-native-hide-keyboard
v0.2.3
Published
A React Native hide keyboard module is for hiding and showing the keyboard without blurring the textInput component
Downloads
26
Maintainers
Readme
react-native-hide-keyboard (Android For Now)
A React Native hide keyboard module is for hiding and showing the keyboard without blurring TextInput component.
Installation
npm install react-native-hide-keyboard
or
yarn add react-native-hide-keyboard
Demo
Usage
import { hideKeyboard, showKeyboard } from "react-native-hide-keyboard";
// For hiding Keyboard
const isItHide = await hideKeyboard();
if (isItHide) {
// Here Keyboard is hide without blurring textInput
}
// For showing keyboard
const isItShow = await showKeyboard();
if (isItShow) {
// Here keyboard is active/displayed
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT