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
{{ message }}
Repository navigation
[SectionList][inverted] SectionList headers are sticky-at-the-top-footers if the list is inverted #18945
Environment:
OS: macOS High Sierra 10.13.1
Node: 8.6.0
Yarn: 1.5.1
npm: 4.6.1
Watchman: 4.9.0
Xcode: Xcode 9.0.1 Build version 9A1004
Android Studio: Not Found
Clone this repository and run it via react-native run-ios.
Observe the section separators are in wrong (randomly?) places.
Expected Behavior
The section list headers should be in the top of the section instead of the bottom like section footers do with an inverted list (but they aren't sticky).
Expected gif:
Actual Behavior
The section headers are footers instead of headers. They are sticky because of #17762 but still footers, not headers.
try:
set sectionlist stickySectionHeadersEnabled={false}
use renderSectionFooter instead of renderSectionHeader with inverted case
Reacted by Rendom, Luke Carelsen, Vaibhav Shukla, rahulje9, Ilya Semenov, KJ JOSE, 0xd3us, Albastroiu Radu, Gustavo Dante Paris, Saket Kumar and 24 more
Reacted by risafj, Caio Quirino Medeiros, Manu, Devio__, wol, Ujjwal Silwal and ibrar hussain
Reacted by Hubert Ryan
Reacted by Zach Bresler, Hubert Ryan and dgayakwadDeloitte
Reacted by wol
Reacted by yanisakli, TopeMateo, Denis Zhelnerovich, edreyyo, Kash, Livio Bieri, Reinis Riekstins, Georgii Oleinikov, Etienne Maurin, Amjed Bouhouch and 20 more
Reacted by Vaibhav Shukla, 0xd3us, Albastroiu Radu, yash-visit, Cody Lundquist, Leonardo Maldonado, Mohammed Abahussain, Margaret Wanjiru Mwaura, Zach Bresler, Hubert Ryan and 3 more
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.
@iamolegga I just don't use section list with sticky headers currently. Just simply FlatList with custom functions for creating sections and then render it.
Also struggling with this here, I'm implementing infinite scroll to the top and need sticky headers (or inverted footers, apparently). Any solutions so far?
Problem: renderSectionHeader is appearing after messages instead of before them
This problem occurs because SectionList is inverted (inverted={true}), which reverses the rendering order of both:
So use renderSectionFooter instead of actually renderSectionHeader which moves the footer upwards
Activity
almorak commentedon Jun 25, 2018
try:
set sectionlist stickySectionHeadersEnabled={false}
use renderSectionFooter instead of renderSectionHeader with inverted case
terrysahaidak commentedon Jun 25, 2018
@almorak thanks for your advice, but it won't fix the bug at all.
Sticky headers are common behavior for chat date headers, I still need them.
Also, see my second issue:
#18943
terrysahaidak commentedon Jun 25, 2018
Hi @janicduplessis, you have worked on support of inverted sticky headers, but there are some issues, could you please look at them?
stale commentedon Sep 23, 2018
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.
terrysahaidak commentedon Sep 23, 2018
Still there is no any workaround or fix for that, so it can't be closed.
iamolegga commentedon Nov 12, 2018
Any workaround on this?
terrysahaidak commentedon Nov 12, 2018
@iamolegga I just don't use section list with sticky headers currently. Just simply FlatList with custom functions for creating sections and then render it.
brunoro commentedon Jan 15, 2019
Also struggling with this here, I'm implementing infinite scroll to the top and need sticky headers (or inverted footers, apparently). Any solutions so far?
50 remaining items
cortinico commentedon Oct 29, 2024
I've pinged a couple of folks internally to look into this 👍
Vinay-Gurjar commentedon Feb 4, 2025
Problem: renderSectionHeader is appearing after messages instead of before them
This problem occurs because SectionList is inverted (inverted={true}), which reverses the rendering order of both:
So use renderSectionFooter instead of actually renderSectionHeader which moves the footer upwards
`
fangpenlin commentedon Feb 6, 2025
Hey @Vinay-Gurjar thanks for reviewing it. I will find a time looking into this issue and address it.
react-native-bot commentedon Aug 6, 2025
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
SimpleCreations commentedon Aug 6, 2025
Still an issue
react-native-bot commentedon Feb 3, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
SimpleCreations commentedon Feb 3, 2026
Not stale
react-native-bot commentedon Aug 3, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
SimpleCreations commentedon Aug 3, 2026
Not stale