Skip to content

Commit af9fb73

Browse files
committed
Update README.md
1 parent 16915c7 commit af9fb73

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ Creates a function of type `UnionCallback.t`
142142
```reason
143143
make:
144144
(
145-
~navigationCallback: webViewNavigationEvent => unit,
146-
~errorCallback: webViewErrorEvent => unit
145+
~navigationCallback: WebViewNavigationEvent.t => unit,
146+
~errorCallback: WebViewErrorEvent.t => unit
147147
) =>
148148
t;
149149
```
@@ -288,7 +288,7 @@ Has the below keys, which can be accessed with `##`.
288288
wraps [`Js.t(webViewError)`](#jstwebviewerror) in `ReactNative.Event.syntheticEvent`
289289

290290
```reason
291-
type webViewErrorEvent =
291+
type WebViewErrorEvent.t =
292292
ReactNative.Event.syntheticEvent(Js.t(webViewError));
293293
```
294294

@@ -299,7 +299,7 @@ passed to the handler specified for [`onError`](#onerror-webviewerrorevent--unit
299299
wraps [`Js.t(webViewHttpError)`](#jstwebviewhttperror) in `ReactNative.Event.syntheticEvent`
300300

301301
```reason
302-
type webViewHttpErrorEvent =
302+
type WebViewHttpErrorEvent.t =
303303
ReactNative.Event.syntheticEvent(Js.t(webViewHttpError));
304304
```
305305

@@ -310,7 +310,7 @@ passed to the handler specified for [`onHttpError`](#onhttperror-webviewhttperro
310310
wraps [`Js.t(webViewMessage)`](#jstwebviewmessage) in `ReactNative.Event.syntheticEvent`
311311

312312
```reason
313-
type webViewMessageEvent =
313+
type WebViewMessageEvent.t =
314314
ReactNative.Event.syntheticEvent(Js.t(webViewMessage));
315315
```
316316

@@ -321,7 +321,7 @@ passed to the handler specified for [`onMessage`](#onmessage-webviewmessageevent
321321
wraps [`Js.t(webViewNavigation)`](#jstwebviewnavigation) in `ReactNative.Event.syntheticEvent`
322322

323323
```reason
324-
type webViewNavigationEvent =
324+
type WebViewNavigationEvent.t =
325325
ReactNative.Event.syntheticEvent(Js.t(webViewNavigation));
326326
```
327327

@@ -332,7 +332,7 @@ passed to handlers specified for [`onLoad`](#onload-webviewnavigationevent--unit
332332
wraps [`Js.t(webViewNativeProgressEvent)`](#jstwebviewnativeprogressevent) in `ReactNative.Event.syntheticEvent`
333333

334334
```reason
335-
type webViewProgressEvent =
335+
type WebViewProgressEvent.t =
336336
ReactNative.Event.syntheticEvent(Js.t(webViewNativeProgressEvent));
337337
```
338338

@@ -343,7 +343,7 @@ passed to the handler specified for [`onLoadProgress`](#onloadprogress-webviewpr
343343
wraps [`Js.t(webViewNativeEvent)`](#jstwebviewnativeevent) in `ReactNative.Event.syntheticEvent`
344344

345345
```reason
346-
type webViewTerminatedEvent =
346+
type WebViewTerminatedEvent.t =
347347
ReactNative.Event.syntheticEvent(webViewNativeEvent);
348348
```
349349

@@ -598,7 +598,7 @@ Overrides the native component used to render the `WebView`. Enables a custom na
598598

599599
You may refer to [iOS-](https://github.com/react-native-webview/react-native-webview/blob/master/docs/Custom-iOS.md) and [Android-](https://github.com/react-native-webview/react-native-webview/blob/master/docs/Custom-Android.md)specific guides on how to create a custom `WebView`.
600600

601-
#### `onContentProcessDidTerminate: webViewTerminatedEvent => unit`
601+
#### `onContentProcessDidTerminate: WebViewTerminatedEvent.t => unit`
602602

603603
_iOS only_
604604

@@ -615,27 +615,27 @@ Specifies function to be invoked when the WebView content process is terminated.
615615
/>
616616
```
617617

618-
#### `onError: webViewErrorEvent => unit`
618+
#### `onError: WebViewErrorEvent.t => unit`
619619

620620
Specifies function to be invoked when the `WebView` fails to load.
621621

622-
#### `onLoad: webViewNavigationEvent => unit`
622+
#### `onLoad: WebViewNavigationEvent.t => unit`
623623

624624
Specifies function to be invoked when the `WebView` has finished loading.
625625

626626
#### `onLoadEnd: UnionCallback.t`
627627

628628
Specifies function to be invoked when the `WebView` succeeds or fails to load.
629629

630-
#### `onLoadProgress: webViewProgressEvent => unit`
630+
#### `onLoadProgress: WebViewProgressEvent.t => unit`
631631

632632
Specifies function to be invoked while the `WebView` is loading.
633633

634-
#### `onLoadStart: webViewNavigationEvent => unit`
634+
#### `onLoadStart: WebViewNavigationEvent.t => unit`
635635

636636
Specifies function to be invoked when the `WebView` starts to load.
637637

638-
#### `onMessage: webViewMessageEvent => unit`
638+
#### `onMessage: WebViewMessageEvent.t => unit`
639639

640640
Specifies function to be invoked when the `WebView` calls `window.ReactNativeWebView.postMessage`. Setting this prop will inject that global into the webview.
641641

0 commit comments

Comments
 (0)