|
@@ -8,7 +8,6 @@ This document lays out the current public properties and methods for the React N
|
8
|
8
|
|
9
|
9
|
- [`source`](Reference.md#source)
|
10
|
10
|
- [`automaticallyAdjustContentInsets`](Reference.md#automaticallyadjustcontentinsets)
|
11
|
|
-- [`injectJavaScript`](Reference.md#injectjavascript)
|
12
|
11
|
- [`injectedJavaScript`](Reference.md#injectedjavascript)
|
13
|
12
|
- [`mediaPlaybackRequiresUserAction`](Reference.md#mediaplaybackrequiresuseraction)
|
14
|
13
|
- [`nativeConfig`](Reference.md#nativeconfig)
|
|
@@ -53,6 +52,7 @@ This document lays out the current public properties and methods for the React N
|
53
|
52
|
- [`goBack`](Reference.md#goback)
|
54
|
53
|
- [`reload`](Reference.md#reload)
|
55
|
54
|
- [`stopLoading`](Reference.md#stoploading)
|
|
55
|
+- [`injectJavaScript`](Reference.md#injectjavascriptstr)
|
56
|
56
|
|
57
|
57
|
---
|
58
|
58
|
|
|
@@ -96,16 +96,6 @@ Controls whether to adjust the content inset for web views that are placed behin
|
96
|
96
|
|
97
|
97
|
---
|
98
|
98
|
|
99
|
|
-### `injectJavaScript`
|
100
|
|
-
|
101
|
|
-Function that accepts a string that will be passed to the WebView and executed immediately as JavaScript.
|
102
|
|
-
|
103
|
|
-| Type | Required |
|
104
|
|
-| -------- | -------- |
|
105
|
|
-| function | No |
|
106
|
|
-
|
107
|
|
----
|
108
|
|
-
|
109
|
99
|
### `injectedJavaScript`
|
110
|
100
|
|
111
|
101
|
Set this to provide JavaScript that will be injected into the web page when the view loads.
|
|
@@ -546,6 +536,14 @@ stopLoading();
|
546
|
536
|
|
547
|
537
|
Stop loading the current page.
|
548
|
538
|
|
|
539
|
+### `injectJavaScript(str)`
|
|
540
|
+
|
|
541
|
+```javascript
|
|
542
|
+injectJavaScript("... javascript string ...");
|
|
543
|
+```
|
|
544
|
+
|
|
545
|
+Executes the JavaScript string.
|
|
546
|
+
|
549
|
547
|
## Other Docs
|
550
|
548
|
|
551
|
549
|
Also check out our [Getting Started Guide](Getting-Started.md) and [In-Depth Guide](Guide.md).
|