mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
mobile: fix bottom safe area margins
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user