From 2efc7c8c01866fafad5322fb8783d94821e32ff1 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Thu, 31 Oct 2024 09:01:33 +0000 Subject: fix(mobile): Fix bookmarkview page on android not showing bookmark actions. Fixes #603 --- apps/mobile/components/ui/CustomSafeAreaView.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/mobile/components/ui/CustomSafeAreaView.tsx') diff --git a/apps/mobile/components/ui/CustomSafeAreaView.tsx b/apps/mobile/components/ui/CustomSafeAreaView.tsx index c97dfe72..fdf6520d 100644 --- a/apps/mobile/components/ui/CustomSafeAreaView.tsx +++ b/apps/mobile/components/ui/CustomSafeAreaView.tsx @@ -4,8 +4,10 @@ import { useHeaderHeight } from "@react-navigation/elements"; export default function CustomSafeAreaView({ children, + edges = ["top", "bottom"], }: { children: React.ReactNode; + edges?: ("top" | "bottom")[]; }) { const insets = useSafeAreaInsets(); const headerHeight = useHeaderHeight(); @@ -15,11 +17,12 @@ export default function CustomSafeAreaView({ style={{ paddingTop: // Some ugly hacks to make the app look the same on both android and ios - Platform.OS == "android" + Platform.OS == "android" && edges.includes("top") ? headerHeight > 0 ? headerHeight : insets.top : undefined, + paddingBottom: edges.includes("bottom") ? insets.bottom : undefined, }} > {children} -- cgit v1.2.3-70-g09d2