chore: ios window color [skip e2e]

This commit is contained in:
Aman Harwara
2023-11-06 14:38:05 +05:30
parent d55b2527d5
commit ade6c8bb1e

View File

@@ -356,11 +356,17 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
} }
return ( return (
<View
style={{
flex: 1,
backgroundColor: '#000000',
}}
>
<WebView <WebView
ref={webViewRef} ref={webViewRef}
source={{ uri: sourceUri }} source={{ uri: sourceUri }}
style={{ style={{
backgroundColor: '#000000', backgroundColor: Platform.OS === 'ios' ? 'transparent' : '#000000',
opacity: didLoadEnd ? 1 : 0, opacity: didLoadEnd ? 1 : 0,
}} }}
originWhitelist={['*']} originWhitelist={['*']}
@@ -396,5 +402,6 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
})} })}
webviewDebuggingEnabled webviewDebuggingEnabled
/> />
</View>
) )
} }