mobile: fix bottom safe area margins

This commit is contained in:
ammarahm-ed
2022-09-19 09:21:59 +05:00
parent 8df4b26f5b
commit 465fd62283
2 changed files with 8 additions and 8 deletions

View File

@@ -59,10 +59,9 @@ const App = () => {
<View
style={{
position: "absolute",
height: "1%",
width: "1%",
left: -999,
right: -999
width: "100%",
height: "100%",
zIndex: -1
}}
pointerEvents="none"
>

View File

@@ -64,10 +64,11 @@ export const EditorWrapper = ({ width }) => {
}, [loading]);
const getMarginBottom = () => {
if (!keyboard.keyboardShown) return insets.bottom / 2;
if (Platform.isPad && !floating) return 16;
if (Platform.OS === "ios") return insets.bottom / 2;
return 6;
const bottomInsets = Platform.OS === "android" ? 14 : insets.bottom || 14;
if (!keyboard.keyboardShown) return bottomInsets / 1.5;
if (Platform.isPad && !floating) return bottomInsets;
if (Platform.OS === "ios") return bottomInsets / 1.5;
return bottomInsets;
};
return (