Fix z-indexes to make tabbar scroll on Android (#7102)

This commit is contained in:
dan
2024-12-14 00:01:31 +00:00
committed by GitHub
parent ca8ca903b2
commit 55222c5b0e
5 changed files with 19 additions and 18 deletions
+6 -8
View File
@@ -136,14 +136,12 @@ export const Pager = forwardRef<PagerRef, React.PropsWithChildren<Props>>(
return (
<View testID={testID} style={[a.flex_1, native(a.overflow_hidden)]}>
<View style={a.z_10 /* Let tabbar bottom border cover the glimmer */}>
{renderTabBar({
selectedPage,
onSelect: onTabBarSelect,
dragProgress,
dragState,
})}
</View>
{renderTabBar({
selectedPage,
onSelect: onTabBarSelect,
dragProgress,
dragState,
})}
<GestureDetector gesture={nativeGesture}>
<AnimatedPagerView
ref={pagerView}
+9 -7
View File
@@ -134,14 +134,16 @@ let PagerTabBar = ({
<Layout.Center>{renderHeader?.({setMinimumHeight: noop})}</Layout.Center>
{tabBarAnchor}
<Layout.Center
style={web([
a.sticky,
style={[
a.z_10,
{
top: 0,
display: isHeaderReady ? undefined : 'none',
},
])}>
web([
a.sticky,
{
top: 0,
display: isHeaderReady ? undefined : 'none',
},
]),
]}>
<TabBar
testID={testID}
items={items}