You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I want to start with "not expanded header" and reveal onscroll. Is that possible?
Here is the code im using.
const {
onMomentumScrollEnd,
onScroll,
onScrollEndDrag,
scrollHeight,
scrollValue,
scrollViewRef,
} = useStickyHeaderScrollProps({
parallaxHeight: PARALLAX_HEIGHT,
snapStartThreshold: SNAP_START_THRESHOLD,
snapStopThreshold: SNAP_STOP_THRESHOLD,
snapToEdge: true,
});
return (
<View style={[screenStyles.screenContainer, tw``]}>
<View style={[styles.headerBarContainer, { width: windowWidth }]}>
<StickyHeaderScrollView
ref={scrollViewRef}
containerStyle={screenStyles.stretchContainer}
onScroll={onScroll}
onMomentumScrollEnd={onMomentumScrollEnd}
onScrollEndDrag={onScrollEndDrag}
renderHeader={() => {
return (
<View pointerEvents="box-none" style={{ height: scrollHeight }}>
);
}}
showsVerticalScrollIndicator={false}
style={screenStyles.stretch}>
<SafeAreaView style={[styles.content, tw
mb-100
]}><View style={tw`px-4 pt-28 mt-5`}>
<View
style={tw`bg-imagine-300 justify-center items-center p-10 mt-5 h-50 rounded-xl mx-4`}>
<Image
style={[tw`h-50 w-50`, { resizeMode: 'contain' }]}
source={imgActivation}
/>
<Text
style={tw`text-gray-900 text-center dark:text-gray-100 font-FontPrimaryMedium text-2xl mt-2 tracking-tighter mb-3`}>
{t('addTest.title')}
<Text
style={tw`text-gray-900 text-center dark:text-gray-100 font-FontPrimaryRegular text-xl mt-2 tracking-tight`}>
{t('addTest.text')}
);
};
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions