Skip to content

Commit ea257d2

Browse files
committed
Add androidLayerType
1 parent 071fc19 commit ea257d2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,12 @@ _Android only_
401401

402402
Disables Hardware Acceleration in the WebView when `true`, defaults to `false`.
403403

404+
#### `` androidLayerType: [ | `none | `software | `hardware ] ``
405+
406+
_Android only_
407+
408+
Specifies the layer type.
409+
404410
#### `applicationNameForUserAgent: string`
405411

406412
Specifies `string` value to append to the `User-Agent` header, will be overridden if `userAgent` is set.

src/ReactNativeWebView.re

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ external make:
170170
~allowsInlineMediaPlayback: bool=?,
171171
~allowsLinkPreview: bool=?,
172172
~androidHardwareAccelerationDisabled: bool=?,
173+
~androidLayerType: [ | `none | `software | `hardware]=?,
173174
~applicationNameForUserAgent: string=?,
174175
~automaticallyAdjustContentInsets: bool=?,
175176
~bounces: bool=?,

0 commit comments

Comments
 (0)