Closed nasirdeveloper closed 1 year ago
You can animate your header with translateY -100 so the tabs are visible but the header not
I've added tabHeaderStyle for this (not documented yet)
<Tabs
mode="scrollable"
tabHeaderStyle={{
position: 'absolute',
top: insets.top + headerSelectHeight,
left: 0,
right: 0,
transform: [
{
translateY: animation.interpolate({
inputRange: [0, 1],
outputRange: [0, -headerSelectHeight], // Hide the header when scrolled down
}) as any as number,
},
],
zIndex: 100,
}}
I've added tabHeaderStyle for this (not documented yet)
<Tabs mode="scrollable" tabHeaderStyle={{ position: 'absolute', top: insets.top + headerSelectHeight, left: 0, right: 0, transform: [ { translateY: animation.interpolate({ inputRange: [0, 1], outputRange: [0, -headerSelectHeight], // Hide the header when scrolled down }) as any as number, }, ], zIndex: 100, }}
Can you provide the full example please?
Need tabs sticky at after a bit of scrolling of a page.
Thanks & Regards, Nasir