Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to make the StickyHeaderSectionList renderHeader scrollable #409

Open
2 tasks
hezhengjian opened this issue Oct 27, 2023 · 0 comments
Open
2 tasks
Labels
bug Something isn't working

Comments

@hezhengjian
Copy link

Environment

Library version: 1.1.1

Affected platforms

  • Android
  • iOS

Current behavior

When my renderHeader is too large, I can't slide the page anymore

Expected behavior

When my renderHeader is too large, I can slide the page anymore

Reproduction

<StickyHeaderSectionList
ref={listRef}
enableSafeAreaTopInset={false}
backgroundColor={c2_2_1}
contentContainerStyle={contentContainerStyle}
titleStyle={{color: c2_1_1}}
parallaxHeight={100}
renderTabs={() => {
if (isNotEmpty(menuListData)) {
return (

);
} else {
return null;
}
}}
tabTextStyle={{...t3_2, color: c2_1_1}}
tabTextActiveStyle={{...t3_2, color: c2_2_1}}
sections={menuData}
tabTextContainerActiveStyle={{backgroundColor: c2_1_1}}
keyExtractor={(_, i) => ${i}}
renderItem={renderItem}
renderSectionHeader={renderSectionHeader}
getItemLayout={getItemLayout}
updateCellsBatchingPeriod={100}
renderHeader={() => (
<ListHeader
popularDishList={popularDishList}
onDishClick={onDishSelected}
onHeightChanged={height => setListHeaderHeight(height)}
onMenuClick={handleMenuClick}
/>
)}
ListEmptyComponent={emptyComponent}
showsVerticalScrollIndicator={false}
onViewableItemsChanged={handleSectionViewableItemsChanged}
viewabilityConfig={{
itemVisiblePercentThreshold: 50, //means if 50% of the item is visible
}}
/>

@hezhengjian hezhengjian added the bug Something isn't working label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant