Skip to content

transparentBackground()

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