|
@@ -58,6 +58,7 @@ This document lays out the current public properties and methods for the React N
|
58
|
58
|
- [`allowsLinkPreview`](Reference.md#allowsLinkPreview)
|
59
|
59
|
- [`sharedCookiesEnabled`](Reference.md#sharedCookiesEnabled)
|
60
|
60
|
- [`textZoom`](Reference.md#textZoom)
|
|
61
|
+- [`autoManageStatusBarEnabled`](Reference.md#autoManageStatusBarEnabled)
|
61
|
62
|
|
62
|
63
|
## Methods Index
|
63
|
64
|
|
|
@@ -343,6 +344,7 @@ url
|
343
|
344
|
### `onHttpError`
|
344
|
345
|
|
345
|
346
|
Function that is invoked when the `WebView` receives an http error.
|
|
347
|
+
|
346
|
348
|
> **_Note_**
|
347
|
349
|
> Android API minimum level 23.
|
348
|
350
|
|
|
@@ -357,7 +359,10 @@ Example:
|
357
|
359
|
source={{ uri: 'https://facebook.github.io/react-native' }}
|
358
|
360
|
onHttpError={syntheticEvent => {
|
359
|
361
|
const { nativeEvent } = syntheticEvent;
|
360
|
|
- console.warn('WebView received error status code: ', nativeEvent.statusCode);
|
|
362
|
+ console.warn(
|
|
363
|
+ 'WebView received error status code: ',
|
|
364
|
+ nativeEvent.statusCode,
|
|
365
|
+ );
|
361
|
366
|
}}
|
362
|
367
|
/>
|
363
|
368
|
```
|
|
@@ -446,7 +451,7 @@ Example:
|
446
|
451
|
onContentProcessDidTerminate={syntheticEvent => {
|
447
|
452
|
const { nativeEvent } = syntheticEvent;
|
448
|
453
|
console.warn('Content process terminated, reloading', nativeEvent);
|
449
|
|
- this.refs.webview.reload()
|
|
454
|
+ this.refs.webview.reload();
|
450
|
455
|
}}
|
451
|
456
|
/>
|
452
|
457
|
```
|
|
@@ -1005,6 +1010,20 @@ Example:
|
1005
|
1010
|
|
1006
|
1011
|
`<WebView textZoom={100} />`
|
1007
|
1012
|
|
|
1013
|
+---
|
|
1014
|
+
|
|
1015
|
+### `autoManageStatusBarEnabled`
|
|
1016
|
+
|
|
1017
|
+If the user watch fullscreen video in WebView then StatusBar will be light. The default value is `true`.
|
|
1018
|
+
|
|
1019
|
+| Type | Required | Platform |
|
|
1020
|
+| ------ | -------- | -------- |
|
|
1021
|
+| number | No | iOS |
|
|
1022
|
+
|
|
1023
|
+Example:
|
|
1024
|
+
|
|
1025
|
+`<WebView autoManageStatusBarEnabled={false} />`
|
|
1026
|
+
|
1008
|
1027
|
## Methods
|
1009
|
1028
|
|
1010
|
1029
|
### `extraNativeComponentConfig()`
|