Skip to content

[SectionList] sticky headers disappers after scroll - Section List - Android #14157

@victorkvarghese

Description

@victorkvarghese

Description

I used section list in react native android. While the sticky headers work perfect for sometime. When user scrolls up and down repeatedly, the sticky headers disappear/ do not get rendered. Tried this with stickySectionHeadersEnabled={false}, everything works fine.

Reproduction Steps and Sample Code

<SectionList
       renderItem={this.renderItem}
       renderSectionHeader={this.renderHeader}
       sections={dataSource}
       keyExtractor={(item) => item.name}
       stickySectionHeadersEnabled={true}
     />

Solution

Sticky headers Enabled: http://imgh.us/Screen_Shot_2017-05-24_at_9.52.13_PM.png
Sticker headers after Scroll : http://imgh.us/Screen_Shot_2017-05-24_at_9.52.39_PM.png

Additional Information

  • React Native version: 0.44.0
  • Platform: Android
  • Development Operating System: macOS
  • Dev tools: [Android studio 2.3]
  • Tested in emulator Nexus 5 API 25

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions