-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
ListHeaderComponent in SectionList is not sticky #20809
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.56 and verify if the issue still exists. The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running |
ListHeaderComponent is not sticky in SectionList. Only section header is. You can put your listHeaderComponent just above the SectionList to make it sticky. |
This is expected behavior, not a bug. So closing this issue. |
As for me, it looks very strange if this is expected behavior. Espesially if compare SectionList with FlatList, where ListHeaderComponent is always on top and does not scroll with other list data. |
use |
@hakankaradis it works for sections of SectionList but not for |
Environment
Description
ListHeaderComponent is not sticky and it scrolls as other Section Headers. How to fix it on top of the list ?
Reproducible Demo
https://snack.expo.io/HkRGmWhIX
The text was updated successfully, but these errors were encountered: