From f5fa07c7dcc297f8021cb0589ac7623180194d54 Mon Sep 17 00:00:00 2001 From: MIchaelZablianov Date: Thu, 30 Apr 2026 19:37:47 +0300 Subject: [PATCH] fix: [ScreenFooter] - Fix taps absorbed in footer area on Android (physical devices) Made-with: Cursor --- .../src/components/screenFooter/index.tsx | 39 ++++++++++++++----- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/packages/react-native-ui-lib/src/components/screenFooter/index.tsx b/packages/react-native-ui-lib/src/components/screenFooter/index.tsx index 5265dbd3fb..19f5823e1a 100644 --- a/packages/react-native-ui-lib/src/components/screenFooter/index.tsx +++ b/packages/react-native-ui-lib/src/components/screenFooter/index.tsx @@ -226,6 +226,8 @@ const ScreenFooter = (props: ScreenFooterProps) => { const childrenArray = React.Children.toArray(children).slice(0, 3).map(renderChild); + const isStaticVisible = animationDuration === 0 && visible; + const renderFooterContent = useCallback(() => { return ( <> @@ -237,22 +239,41 @@ const ScreenFooter = (props: ScreenFooterProps) => { ); }, [renderBackground, testID, contentContainerStyle, childrenArray]); + const renderKeyboardAccessoryView = () => ( + + ); + if (keyboardBehavior === KeyboardBehavior.HOISTED) { + if (isStaticVisible) { + return ( + + {renderKeyboardAccessoryView()} + + ); + } return ( - + {renderKeyboardAccessoryView()} ); } + if (isStaticVisible) { + return ( + + {renderFooterContent()} + + ); + } + return ( {renderFooterContent()}