From 87e40a6bace924a6065cc441e52abbb3be4dce9b Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 7 Dec 2023 05:54:27 +0000 Subject: [PATCH] Fixes --- src/view/com/pager/PagerWithHeader.tsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/view/com/pager/PagerWithHeader.tsx b/src/view/com/pager/PagerWithHeader.tsx index 80aa5dfc58..5bbd576ae2 100644 --- a/src/view/com/pager/PagerWithHeader.tsx +++ b/src/view/com/pager/PagerWithHeader.tsx @@ -258,14 +258,11 @@ let PagerTabBar = ({ return ( + style={[ + isMobile ? styles.tabBarMobile : styles.tabBarDesktop, + isWeb ? null : headerTransform, + isWeb ? null : {position: 'absolute'}, + ]}> {renderHeader?.()} @@ -335,14 +332,12 @@ function PagerItem({ const styles = StyleSheet.create({ tabBarMobile: { - position: 'absolute', zIndex: 1, top: 0, left: 0, width: '100%', }, tabBarDesktop: { - position: 'absolute', zIndex: 1, top: 0, // @ts-ignore Web only -prf