[ad_1]
I’ve two scrollview that one in all them has a search bar that ought to pull all the way down to see it and i’ve a title of the checklist above of that so I wish to when customers scroll the scrollview that’s in inside, the title of that going underneath the principle header with the checklist gadgets.
enter picture description right here
that is my code
<PanGestureHandler enabled={false} waitFor={scrollViewRef}>
<View
type={{
paddingRight: 15,
paddingLeft: 15,
paddingBottom: 100,
}}>
<Textual content type={kinds.page_title}>{t('all_photos.page_title')}</Textual content>
<ScrollView
enabled={true}
ref={scrollViewRef}
scrollEventThrottle={hiddenHeaderHeight}
onScroll={Animated.occasion([
{nativeEvent: {contentOffset: {y: scrollY}}},
])}
contentOffset={{y: hiddenHeaderHeight, x: 0}}
contentContainerStyle={{minHeight: peak}}>
and search container inside sectionList :
<SectionList
sections={pictures}
renderSectionHeader={renderHeder}
renderItem={renderSection}
ListHeaderComponent={() => (
<SearchBar headerHeight={hiddenHeaderHeight} />
)}
/>
[ad_2]
