Allow scroll by dragging profile header (#2068)

This commit is contained in:
dan 2023-12-04 20:03:32 +00:00 committed by GitHub
parent 9562a80908
commit a687d3f028
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 16 deletions

View file

@ -254,11 +254,14 @@ let PagerTabBar = ({
}))
return (
<Animated.View
pointerEvents="box-none"
style={[
isMobile ? styles.tabBarMobile : styles.tabBarDesktop,
headerTransform,
]}>
<View onLayout={onHeaderOnlyLayout}>{renderHeader?.()}</View>
<View onLayout={onHeaderOnlyLayout} pointerEvents="box-none">
{renderHeader?.()}
</View>
<View
onLayout={onTabBarLayout}
style={{