Bläddra i källkod

chore(docs): Document request focus method

Thibault Malbranche 5 år sedan
förälder
incheckning
ef5c36c88e
No account linked to committer's email address
1 ändrade filer med 9 tillägg och 1 borttagningar
  1. 9
    1
      docs/Reference.md

+ 9
- 1
docs/Reference.md Visa fil

@@ -73,7 +73,7 @@ This document lays out the current public properties and methods for the React N
73 73
 - [`clearFormData`](Reference.md#clearFormData)
74 74
 - [`clearCache`](Reference.md#clearCache)
75 75
 - [`clearHistory`](Reference.md#clearHistory)
76
-
76
+- [`requestFocus`](Reference.md#requestFocus)
77 77
 ---
78 78
 
79 79
 # Reference
@@ -1111,6 +1111,14 @@ Executes the JavaScript string.
1111 1111
 
1112 1112
 To learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.
1113 1113
 
1114
+### `requestFocus()`
1115
+
1116
+```javascript
1117
+requestFocus();
1118
+```
1119
+
1120
+Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
1121
+
1114 1122
 ### `clearFormData()`
1115 1123
 (android only)
1116 1124