fix: Fixed issue where safe area insets were not always applying properly on iOS, causing a UI shift (#2912)
This commit is contained in:
committed by
GitHub
parent
07f45245a3
commit
117781bb36
@@ -370,7 +370,9 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
|
||||
document.documentElement.style.setProperty('--safe-area-inset-right', '${insets.right}px');
|
||||
true;
|
||||
`
|
||||
webViewRef.current?.injectJavaScript(injectJS)
|
||||
if (Platform.OS === 'android') {
|
||||
webViewRef.current?.injectJavaScript(injectJS)
|
||||
}
|
||||
|
||||
if (showAndroidWebviewUpdatePrompt) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user