Skip to content

ListHeaderComponent in SectionList is not sticky. #20807

Closed
@max-zu

Description

@max-zu
<SectionList
    ListHeaderComponent={this.renderHeader}
    ListFooterComponent={isLoadingMore && <ActivityIndicator />}
    stickyHeaderIndices={[0]}
    keyExtractor={this.props.keyExtractor || this.defaultKeyExtractor}
    renderItem={this.renderItem}
    directionalLockEnabled
    getItemLayout={this.getItemLayout}
    bounces={false}
    onEndReached={this.handleLoadMore}
    showsHorizontalScrollIndicator={false}
    showsVerticalScrollIndicator={false}
    stickySectionHeadersEnabled
    renderSectionHeader={this.renderSectionHeader}
    sections={this.porps.listData}
/>

ListHeaderComponent is not sticky and it scrolls as other Section Headers. How to fix it on top of the list ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions