Skip to content

Commit 8ac19c7

Browse files
author
Daniel Schmidt
committed
improved readme
1 parent d3ea21f commit 8ac19c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
## react-native-dismiss-keyboard ![CircleCi](https://circleci.com/gh/DanielMSchmidt/react-native-dismiss-keyboard.png?circle-token=905f7ed099611e3f8079a5bf72674beab5e55e50)
1+
## react-native-dismiss-keyboard ![CircleCi](https://circleci.com/gh/DanielMSchmidt/react-native-dismiss-keyboard.png?circle-token=905f7ed099611e3f8079a5bf72674beab5e55e50) [![npm version](https://badge.fury.io/js/react-native-dismiss-keyboard.svg)](https://badge.fury.io/js/react-native-dismiss-keyboard)
22

3-
A simple way to dismiss the keyboard programmatically in a react native application.
3+
A simple way to dismiss the keyboard programmatically in a react native application. [A demo app can be fond here](https://github.com/DanielMSchmidt/DismissKeyboardExample).
44

55
## Add it to your project
66

77
1. Run `npm install react-native-dismiss-keyboard --save`
8-
2. `var dismissKeyboard = require('react-native-dismiss-keyboard');`
8+
2. Import the library
9+
- `var dismissKeyboard = require('react-native-dismiss-keyboard');`
10+
- `import dismissKeyboard from 'react-native-dismiss-keyboard';`
911
3. Run `dismissKeyboard()` anywhere in your code to close the keyboard.
1012

1113
## Support

0 commit comments

Comments
 (0)