|
@@ -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)
|
|
@@ -44,6 +43,7 @@ This document lays out the current public properties and methods for the React N
|
44
|
43
|
- [`url`](Reference.md#url)
|
45
|
44
|
- [`html`](Reference.md#html)
|
46
|
45
|
- [`hideKeyboardAccessoryView`](Reference.md#hidekeyboardaccessoryview)
|
|
46
|
+- [`allowsBackForwardNavigationGestures`](Reference.md#allowsbackforwardnavigationgestures)
|
47
|
47
|
|
48
|
48
|
## Methods Index
|
49
|
49
|
|
|
@@ -52,6 +52,7 @@ This document lays out the current public properties and methods for the React N
|
52
|
52
|
- [`goBack`](Reference.md#goback)
|
53
|
53
|
- [`reload`](Reference.md#reload)
|
54
|
54
|
- [`stopLoading`](Reference.md#stoploading)
|
|
55
|
+- [`injectJavaScript`](Reference.md#injectjavascriptstr)
|
55
|
56
|
|
56
|
57
|
---
|
57
|
58
|
|
|
@@ -95,16 +96,6 @@ Controls whether to adjust the content inset for web views that are placed behin
|
95
|
96
|
|
96
|
97
|
---
|
97
|
98
|
|
98
|
|
-### `injectJavaScript`
|
99
|
|
-
|
100
|
|
-Function that accepts a string that will be passed to the WebView and executed immediately as JavaScript.
|
101
|
|
-
|
102
|
|
-| Type | Required |
|
103
|
|
-| -------- | -------- |
|
104
|
|
-| function | No |
|
105
|
|
-
|
106
|
|
----
|
107
|
|
-
|
108
|
99
|
### `injectedJavaScript`
|
109
|
100
|
|
110
|
101
|
Set this to provide JavaScript that will be injected into the web page when the view loads.
|
|
@@ -494,6 +485,17 @@ If true, this will hide the keyboard accessory view (< > and Done) when using th
|
494
|
485
|
| ------- | -------- | -------- |
|
495
|
486
|
| boolean | No | iOS |
|
496
|
487
|
|
|
488
|
+---
|
|
489
|
+
|
|
490
|
+### `allowsBackForwardNavigationGestures`
|
|
491
|
+
|
|
492
|
+If true, this will be able horizontal swipe gestures when using the WKWebView. The default value is `false`.
|
|
493
|
+
|
|
494
|
+| Type | Required | Platform |
|
|
495
|
+| ------- | -------- | -------- |
|
|
496
|
+| boolean | No | iOS |
|
|
497
|
+
|
|
498
|
+
|
497
|
499
|
## Methods
|
498
|
500
|
|
499
|
501
|
### `extraNativeComponentConfig()`
|
|
@@ -534,6 +536,14 @@ stopLoading();
|
534
|
536
|
|
535
|
537
|
Stop loading the current page.
|
536
|
538
|
|
|
539
|
+### `injectJavaScript(str)`
|
|
540
|
+
|
|
541
|
+```javascript
|
|
542
|
+injectJavaScript("... javascript string ...");
|
|
543
|
+```
|
|
544
|
+
|
|
545
|
+Executes the JavaScript string.
|
|
546
|
+
|
537
|
547
|
## Other Docs
|
538
|
548
|
|
539
|
549
|
Also check out our [Getting Started Guide](Getting-Started.md) and [In-Depth Guide](Guide.md).
|