You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ import WKWebView from 'react-native-wkwebview-reborn';
29
29
30
30
Try replacing your existing `WebView` with `WKWebView` and it should work in most cases.
31
31
32
-
If your React Native < 0.40, please use **0.x.x** versions.
32
+
For React Native >= 0.57, use version 2.x; for React Native < 0.40, use version 0.x.
33
33
34
34
### Compatibility with UIWebView
35
35
@@ -43,16 +43,16 @@ WKWebView aims to be a drop-in replacement for UIWebView. However, some legacy U
43
43
44
44
A callback to get the loading progress of WKWebView. Derived from [`estimatedProgress`](https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKWebView_Ref/#//apple_ref/occ/instp/WKWebView/estimatedProgress) property.
45
45
46
-
-**onNavigationResponse**
47
-
48
-
A callback to get response headers, http status code and http localized status code.
A callback to get response headers, http status code and http localized status code.
55
+
56
56
-**openNewWindowInWebView**
57
57
58
58
If set to true, links with `target="_blank"` or `window.open` will be opened in the current webview, not in Safari. Default is false.
@@ -96,6 +96,10 @@ This property specifies how the safe area insets are used to modify the content
96
96
97
97
Enables focusing an input inside a webview and showing the keyboard *programatically*. **New in 1.20.0**
98
98
99
+
-**keyboardDismissMode**
100
+
101
+
Sets the manner in which the keyboard is dismissed when a drag begins in the scroll view. Possible values are "none", "on-drag" and "interactive". Default to "none".
Add JavaScript at document start, see [WKUserScriptInjectionTimeAtDocumentStart](https://developer.apple.com/documentation/webkit/wkuserscriptinjectiontime/wkuserscriptinjectiontimeatdocumentstart?language=objc). **New in 1.20.0**
@@ -104,6 +108,10 @@ Add JavaScript at document start, see [WKUserScriptInjectionTimeAtDocumentStart]
104
108
105
109
Add JavaScript at document end. Since 1.20.0, the implementation has been changed to use WKUserScript.
106
110
111
+
-**allowsBackForwardNavigationGestures**
112
+
113
+
Enable horizontal swipe gestures will trigger back-forward navigations. Derived from [`allowsBackForwardNavigationGestures`](https://developer.apple.com/documentation/webkit/wkwebview/1414995-allowsbackforwardnavigationgestu) property.
0 commit comments