Skip to content

Commit

Permalink
docs: improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Oct 27, 2018
1 parent a08846c commit c5fb8b0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Expand Up @@ -12,9 +12,17 @@ This module targets React Native Views, therefore the solution will not work in

1. Run `npm install react-native-dismiss-keyboard --save`
2. To import the library choose one of these options
- `var dismissKeyboard = require('react-native-dismiss-keyboard');`
- `import dismissKeyboard from 'react-native-dismiss-keyboard';`
3. Run `dismissKeyboard()` anywhere in your code to close the keyboard.
- ```js
var dismissKeyboard = require('react-native-dismiss-keyboard');
```
- ```js
import dismissKeyboard from 'react-native-dismiss-keyboard';
```
3. Run
```js
dismissKeyboard()
```
anywhere in your code to close the keyboard.

## Support

Expand Down

0 comments on commit c5fb8b0

Please sign in to comment.