File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import useWindowDimensions from '@hooks/useWindowDimensions';
1515import mergeRefs from '@libs/mergeRefs' ;
1616import CONST from '@src/CONST' ;
1717import type { AnchorPosition } from '@src/styles' ;
18+ import useSafeAreaPaddings from '@hooks/useSafeAreaPaddings' ;
1819import type { ButtonWithDropdownMenuProps } from './types' ;
1920
2021type ButtonWithDropdownMenuRef = {
@@ -81,6 +82,8 @@ function ButtonWithDropdownMenuInner<IValueType>(props: ButtonWithDropdownMenuPr
8182 const nullCheckRef = ( refParam : RefObject < View | null > ) => refParam ?? null ;
8283 const shouldShowButtonRightIcon = ! ! options . at ( 0 ) ?. shouldShowButtonRightIcon ;
8384
85+ const { paddingBottom} = useSafeAreaPaddings ( true )
86+
8487 useEffect ( ( ) => {
8588 if ( ! dropdownAnchor . current ) {
8689 return ;
@@ -265,7 +268,7 @@ function ButtonWithDropdownMenuInner<IValueType>(props: ButtonWithDropdownMenuPr
265268 anchorRef = { nullCheckRef ( dropdownAnchor ) }
266269 withoutOverlay
267270 shouldUseScrollView
268- scrollContainerStyle = { ! shouldUseModalPaddingStyle && isSmallScreenWidth && styles . pv4 }
271+ scrollContainerStyle = { ! shouldUseModalPaddingStyle && isSmallScreenWidth && { ... styles . pt4 , paddingBottom } }
269272 shouldUseModalPaddingStyle = { shouldUseModalPaddingStyle }
270273 anchorAlignment = { anchorAlignment }
271274 headerText = { menuHeaderText }
You can’t perform that action at this time.
0 commit comments