From 420307ab8d25a3e40f08050d92ec7f4ab6470041 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 24 Nov 2025 09:54:12 +0500 Subject: [PATCH] mobile: fix floating button shadow clipped on android --- .../components/container/floating-button.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/mobile/app/components/container/floating-button.tsx b/apps/mobile/app/components/container/floating-button.tsx index 65a357caf..f9d8715f8 100644 --- a/apps/mobile/app/components/container/floating-button.tsx +++ b/apps/mobile/app/components/container/floating-button.tsx @@ -36,7 +36,6 @@ import { getElevationStyle } from "../../utils/elevation"; import { AppFontSize, normalize } from "../../utils/size"; import { DefaultAppStyles } from "../../utils/styles"; import { hexToRGBA, RGB_Linear_Shade } from "../../utils/colors"; -import useKeyboard from "../../hooks/use-keyboard"; interface FloatingButtonProps { onPress: () => void; @@ -120,14 +119,16 @@ const FloatingButton = ({ style={[ { position: "absolute", - right: position === "right" ? DefaultAppStyles.GAP : undefined, - left: position === "left" ? DefaultAppStyles.GAP : undefined, - bottom: 20, + right: position === "right" ? DefaultAppStyles.GAP - 7 : undefined, + left: position === "left" ? DefaultAppStyles.GAP - 7 : undefined, + bottom: 15, zIndex: 10, + padding: 15, ...style }, animatedStyle ]} + pointerEvents="box-none" >