Skip to content

Rendering bug when using sectionHeaders #41

@mschipperheyn

Description

@mschipperheyn

I have a rendering bug that doesn't occur with the normal ListView. It occurs when I use section Headers.

After some scrolling, the items start overlapping each other. I'm assuming that the trick with emptying out invisible boxes is not taking sections into consideration.

screen shot 2016-10-17 at 17 31 59

screen shot 2016-10-17 at 17 31 48

I call SGListView like so

  <SGListView
      ref="sglist"
      automaticallyAdjustContentInsets={false}
      dataSource={this.state.ds}
      renderRow={renderRow}
      contentContainerStyle={this.props.contentContainerStyle}
      stickyHeaderIndices={[]}
      initialListSize={this.props.initialListSize}
      scrollRenderAheadDistance={1}
      pageSize={12}
      scrollEnabled={scrollEnabled}
      onScroll={onScroll}
      scrollEventThrottle={0}
      onMomentumScrollEnd = {onScrollEnd}
      onEndReached={this.handleLoadMore}
      onEndReachedThreshold={70}
      renderSectionHeader={this.props.renderSectionHeader}
      renderFooter={this.renderFooter}
      contentContainerStyle={[localStyle.container,contentContainerStyle]}
      onLayout={this.setListHeight}
      refreshControl={
        <RefreshControl
          refreshing={showRefresh}
          onRefresh={onRefresh}
        />
      }
  />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions