fix: Fixed issue where safe area insets were not always applying properly on iOS, causing a UI shift (#2912)

This commit is contained in:
Antonella Sgarlatta
2025-07-04 06:04:55 -03:00
committed by GitHub
parent 07f45245a3
commit 117781bb36
2 changed files with 7 additions and 5 deletions

View File

@@ -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 (