# androidLayerType()

```ts
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`](<https://rasmuskard.github.io/react-native-minimal-webview/typescript/extensions/type-aliases/AndroidLayerType/index.md>) |

**Returns**

| [`HookExtension`](<https://rasmuskard.github.io/react-native-minimal-webview/typescript/react-native-minimal-webview/type-aliases/HookExtension/index.md>) | `null`

Null on iOS.
