Skip to content

androidLayerType()

function androidLayerType(type): 
  | HookExtension
  | null;

Android

Sets the WebView's layer type, and keeps it on the WebView that replaces one whose renderer crashed: react-native-webview's androidLayerType.

Switched off, the layer type is 'none' again.

Parameters

Parameter Type
type AndroidLayerType

Returns

| HookExtension | null

Null on iOS.