# transparentBackground()

```ts
function transparentBackground(): HookExtension;
```

Makes the WebView itself transparent, so that the views behind it show where the page paints no background: react-native-webview's `style={{ backgroundColor: 'transparent' }}`.

Switched off, it is opaque again; on Android, white.

**Returns**

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