chore(docs): Document request focus method

This commit is contained in:
Thibault Malbranche 2019-11-13 10:43:25 +01:00 committed by GitHub
parent 4c2feefbcc
commit ef5c36c88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ This document lays out the current public properties and methods for the React N
- [`clearFormData`](Reference.md#clearFormData) - [`clearFormData`](Reference.md#clearFormData)
- [`clearCache`](Reference.md#clearCache) - [`clearCache`](Reference.md#clearCache)
- [`clearHistory`](Reference.md#clearHistory) - [`clearHistory`](Reference.md#clearHistory)
- [`requestFocus`](Reference.md#requestFocus)
--- ---
# Reference # Reference
@ -1111,6 +1111,14 @@ Executes the JavaScript string.
To learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide. To learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.
### `requestFocus()`
```javascript
requestFocus();
```
Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
### `clearFormData()` ### `clearFormData()`
(android only) (android only)