|
@@ -35,6 +35,7 @@ This document lays out the current public properties and methods for the React N
|
35
|
35
|
- [`javaScriptEnabled`](Reference.md#javascriptenabled)
|
36
|
36
|
- [`javaScriptCanOpenWindowsAutomatically`](Reference.md#javascriptcanopenwindowsautomatically)
|
37
|
37
|
- [`androidHardwareAccelerationDisabled`](Reference.md#androidHardwareAccelerationDisabled)
|
|
38
|
+- [`androidLayerType`](Reference.md#androidLayerType)
|
38
|
39
|
- [`mixedContentMode`](Reference.md#mixedcontentmode)
|
39
|
40
|
- [`thirdPartyCookiesEnabled`](Reference.md#thirdpartycookiesenabled)
|
40
|
41
|
- [`userAgent`](Reference.md#useragent)
|
|
@@ -781,7 +782,7 @@ A Boolean value indicating whether JavaScript can open windows without user inte
|
781
|
782
|
|
782
|
783
|
### `androidHardwareAccelerationDisabled`[⬆](#props-index)<!-- Link generated with jump2header -->
|
783
|
784
|
|
784
|
|
-Boolean value to disable Hardware Acceleration in the `WebView`. Used on Android only as Hardware Acceleration is a feature only for Android. The default value is `false`.
|
|
785
|
+**Deprecated.** Use the `androidLayerType` prop instead.
|
785
|
786
|
|
786
|
787
|
| Type | Required | Platform |
|
787
|
788
|
| ---- | -------- | -------- |
|
|
@@ -789,6 +790,24 @@ Boolean value to disable Hardware Acceleration in the `WebView`. Used on Android
|
789
|
790
|
|
790
|
791
|
---
|
791
|
792
|
|
|
793
|
+### `androidLayerType`[⬆](#props-index)<!-- Link generated with jump2header -->
|
|
794
|
+
|
|
795
|
+Specifies the layer type.
|
|
796
|
+
|
|
797
|
+Possible values for `androidLayerType` are:
|
|
798
|
+
|
|
799
|
+- `none` (default) - The view does not have a layer.
|
|
800
|
+- `software` - The view has a software layer. A software layer is backed by a bitmap and causes the view to be rendered using Android's software rendering pipeline, even if hardware acceleration is enabled.
|
|
801
|
+- `hardware` - The view has a hardware layer. A hardware layer is backed by a hardware specific texture and causes the view to be rendered using Android's hardware rendering pipeline, but only if hardware acceleration is turned on for the view hierarchy.
|
|
802
|
+
|
|
803
|
+Avoid setting both `androidLayerType` and `androidHardwareAccelerationDisabled` props at the same time, as this may cause undefined behaviour.
|
|
804
|
+
|
|
805
|
+| Type | Required | Platform |
|
|
806
|
+| ------ | -------- | -------- |
|
|
807
|
+| string | No | Android |
|
|
808
|
+
|
|
809
|
+---
|
|
810
|
+
|
792
|
811
|
### `mixedContentMode`[⬆](#props-index)<!-- Link generated with jump2header -->
|
793
|
812
|
|
794
|
813
|
Specifies the mixed content mode. i.e WebView will allow a secure origin to load content from any other origin.
|