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

Add support for ListHeaderComponent as sticky header in SectionList #696

Open
sreuter opened this issue Aug 6, 2023 · 1 comment
Open

Comments

@sreuter
Copy link

sreuter commented Aug 6, 2023

Introduction

While FlatList supports defining the ListHeaderComponent sticky, it currently doesn't seem to be supported for SectionList.

Details

facebook/react-native#29547

Discussion points

Should we do this? Seems like low-hanging fruit as SectionList is built on top of FlatList.

@NickGerleman
Copy link

ListHeaderComponent is a prop on the underlying VirtualizedList, where there is logic to compute stickyHeaderIndicies` of the ScrollView with/without the header. This would need a new prop and logic there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants