From 5b85158a7ce7d0c368f3f69aada51025ec53b04e Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 16 Jan 2026 10:38:55 +0500 Subject: [PATCH] mobile: fix share sheet bottom padding --- apps/mobile/app/share/share.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/mobile/app/share/share.tsx b/apps/mobile/app/share/share.tsx index 7fbd6aed2..78638ebf3 100644 --- a/apps/mobile/app/share/share.tsx +++ b/apps/mobile/app/share/share.tsx @@ -167,6 +167,11 @@ const ShareView = () => { globalThis["IS_SHARE_EXTENSION"] = true; const onKeyboardDidShow = (event: KeyboardEvent) => { let height = Dimensions.get("screen").height - event.endCoordinates.screenY; + if (height < 100) { + setKeyboardHeight(0); + keyboardHeightRef.current = 0; + return; + } keyboardHeightRef.current = height; setKeyboardHeight(height); }; @@ -448,11 +453,7 @@ const ShareView = () => { overflow: "hidden", paddingTop: insets.top, paddingLeft: insets.left, - paddingRight: insets.right, - paddingBottom: - Platform.OS === "android" && keyboardHeight - ? keyboardHeight - (insets.bottom || (gesturesEnabled ? 25 : 50)) - : 0 + paddingRight: insets.right }} > {loadingPage ? : null} @@ -500,7 +501,11 @@ const ShareView = () => { display: searchMode ? "none" : "flex", borderTopRightRadius: Platform.OS === "ios" ? 10 : 15, borderTopLeftRadius: Platform.OS === "ios" ? 10 : 15, - maxHeight: Platform.OS === "android" ? undefined : "100%" + maxHeight: Platform.OS === "android" ? undefined : "100%", + paddingBottom: + Platform.OS === "android" && keyboardHeight + ? keyboardHeight + : insets.bottom }} >