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
Type of function passed to the [`onLoadEnd`](#onloadend-unioncallbackt) prop, to handle the union type [`webViewNavigationOrError`](#webviewnavigationorerror). Defined as
133
133
134
-
```reason
134
+
```rescript
135
135
ReactNative.Event.syntheticEvent(Js.t(webViewNavigationOrError)) => unit
136
136
```
137
137
138
138
##### `UnionCallback.make`
139
139
140
140
Creates a function of type `UnionCallback.t`
141
141
142
-
```reason
142
+
```rescript
143
143
make:
144
144
(
145
145
~navigationCallback: WebViewNavigationEvent.t => unit,
@@ -152,7 +152,7 @@ make:
152
152
153
153
Creates a function of type `UnionCallback.t`
154
154
155
-
```reason
155
+
```rescript
156
156
uncurriedMake:
157
157
(
158
158
~navigationCallback:(. webViewNavigationEvent) => unit,
@@ -169,7 +169,7 @@ Represents a `WebView` instance, to be used with [methods](#methods).
169
169
170
170
Should be constructed as below:
171
171
172
-
```reason
172
+
```rescript
173
173
nativeConfig:
174
174
(
175
175
~component: React.component('a)=?,
@@ -185,7 +185,7 @@ You may refer to [iOS↗](https://github.com/react-native-webview/react-native-w
185
185
186
186
React `ref` intended to access a `WebView` instance. Defined as
187
187
188
-
```reason
188
+
```rescript
189
189
type ref = React.Ref.t(Js.nullable(element))
190
190
```
191
191
@@ -287,7 +287,7 @@ Has the below keys, which can be accessed with `##`.
287
287
288
288
wraps [`Js.t(webViewError)`](#jstwebviewerror) in `ReactNative.Event.syntheticEvent`
@@ -463,7 +463,7 @@ allows to customize the WebView container style. Please note that there are defa
463
463
464
464
#### `contentInset: ReactNative.View.edgeInsets`
465
465
466
-
Refer to [`reason-react-native` documentation on View](https://github.com/reason-react-native/reason-react-native/blob/master/src/components/View.md).
466
+
Refer to [`rescript-react-native` documentation on View](https://github.com/rescript-react-native/rescript-react-native/blob/master/src/components/View.md).
Specifies function to be invoked when the WebView content process is terminated. The process may be terminated due to reasons such as running too long or using too many resources, however, once terminated a blank page is displayed and the `WebView` becomes unusable. Please refer to the [PR](https://github.com/react-native-webview/react-native-webview/pull/774) which added the functionality to allow handling this issue.
@@ -816,7 +816,7 @@ allows to customize the WebView style. Please note that there are default styles
816
816
817
817
For the methods below, [`element`](#element) representing the `WebView` instance needs to be determined from the [`ref`](#ref) which itself can be defined and passed to the `WebView`[`ref`](#ref-ref) prop as below:
818
818
819
-
```reason
819
+
```rescript
820
820
let ref = React.createRef();
821
821
822
822
<ReactNativeWebView
@@ -825,7 +825,7 @@ let ref = React.createRef();
825
825
826
826
The `element` can be determined and the method [`reload`](#reload-element--unit) may be called as below:
0 commit comments