react-native-keyboard-dismiss
This library simple allows iOS and Android apps to dismiss keyboard when touching outside the inputs.
Add it to your project
-
Run
npm install @3beeepb/react-native-keyboard-dismiss --save
-
Import the library
import KeyboardDismiss from '@3beeepb/react-native-keyboard-dismiss';
-
Just use it like this:
<KeyboardDismiss> {children} </KeyboardDismiss>
Contribution
Please make sure to run the tests before proposing a PR by running npm test
.