Repository navigation
[SectionList][inverted] SectionSeparatorComponent displays in wrong places with inverted list #18943
Description
Activity
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.
- addedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Jul 18, 2018 - removedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Jul 18, 2018 try
stickySectionHeadersEnabled={false}@yanisakli Just tried it out with
stickySectionHeaderEnabled={false}.
Nothing has changed.
The issue is about gray with blue borders blocks. Here how it should be (it works well withoutinvertedprop):

To clarify the issue here: The section headers need to render before the section items when the SectionList is inverted -- currently when the SectionList is reversed the section headers are placed after each section
Reacted by Terry Sahaidak, Giacomo Mineo, Kevin Grant and Nate RickardAny updates on this? I'm still getting this issue on the latest version of react native.
@nastynaz I did implement my own section-list using flatlist and conditional rendering of the current item, poor performance but at least it works.
4 remaining items
This hasn't been fixed yet.
- removedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Aug 2, 2019 - added a commit that references this issue
on Oct 28, 2019 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 a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
- addedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Oct 31, 2019 I will check the latest pr and write back here :)
- removedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Oct 31, 2019 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 a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
- addedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Jan 30, 2020 Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
- locked as resolved and limited conversation to collaborators
on Feb 6, 2020


Environment
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
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3
Steps to Reproduce
Clone this repository and run it via
react-native run-ios.Observe the section separators are in wrong (randomly?) places.
Expected Behavior
The section separators should be right after the sections and section headers (like the non-inverted section list does).
I've used the same code as below but without inverted prop.
Expected gif:
Actual Behavior
The section separator components are in wrong places in the list if the list is inverted. For a non-inverted list, it works as expected.
Sample code:
Problem Gif: