Skip to content

Commit c5fb8b0

Browse files
docs: improve readme
1 parent a08846c commit c5fb8b0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@ This module targets React Native Views, therefore the solution will not work in
1212

1313
1. Run `npm install react-native-dismiss-keyboard --save`
1414
2. To import the library choose one of these options
15-
- `var dismissKeyboard = require('react-native-dismiss-keyboard');`
16-
- `import dismissKeyboard from 'react-native-dismiss-keyboard';`
17-
3. Run `dismissKeyboard()` anywhere in your code to close the keyboard.
15+
- ```js
16+
var dismissKeyboard = require('react-native-dismiss-keyboard');
17+
```
18+
- ```js
19+
import dismissKeyboard from 'react-native-dismiss-keyboard';
20+
```
21+
3. Run
22+
```js
23+
dismissKeyboard()
24+
```
25+
anywhere in your code to close the keyboard.
1826

1927
## Support
2028

0 commit comments

Comments
 (0)