From c1bf738740db72477984b05dd6f60da262c24a41 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 26 Sep 2024 13:58:03 +0100 Subject: [PATCH] only move down tab bar, leave buttons --- src/view/com/home/HomeHeaderLayoutMobile.tsx | 239 +++++++++---------- 1 file changed, 119 insertions(+), 120 deletions(-) diff --git a/src/view/com/home/HomeHeaderLayoutMobile.tsx b/src/view/com/home/HomeHeaderLayoutMobile.tsx index 55cc432d4d..3fa50bc4b0 100644 --- a/src/view/com/home/HomeHeaderLayoutMobile.tsx +++ b/src/view/com/home/HomeHeaderLayoutMobile.tsx @@ -111,9 +111,12 @@ export function HomeHeaderLayoutMobile({ { translateY: isWeb ? 0 - : interpolate(scrollY?.value ?? 0, [-2, 0], [-1, 0], { - extrapolateRight: Extrapolation.CLAMP, - }), + : interpolate( + scrollY?.value ?? -headerHeight.value, + [-headerHeight.value, 0], + [headerHeight.value / 2, 0], + {extrapolateRight: Extrapolation.CLAMP}, + ), }, ], })) @@ -130,129 +133,125 @@ export function HomeHeaderLayoutMobile({ return ( - {native( + style={[ + t.atoms.bg, + t.atoms.border_contrast_medium, + styles.tabBar, + headerMinimalShellTransform, + ]} + onLayout={e => { + headerHeight.value = e.nativeEvent.layout.height + }}> + + + + + + + + + {showSpinner ? ( + + + + ) : ( + + + + {ctx => ( + + )} + + + {/* */} + + )} + + , - )} - { - headerHeight.value = e.nativeEvent.layout.height - }}> - - - - - - - - - {showSpinner ? ( - - - - ) : ( - - - - {ctx => ( - - )} - - - {/* */} - - )} - - + {width: 100}, + ]}> + {IS_DEV && ( + <> + + + + + )} + {hasSession && ( + + + + )} + + + + {native( - {IS_DEV && ( - <> - - - - - )} - {hasSession && ( - - - - )} - - + ]} + />, + )} {children}