Skip to content

Animation stops when using in footer of ListView #35

@Naoto-Ida

Description

@Naoto-Ida

I love this library btw.
I have a <ListView> which loads more content when it reaches the bottom(end).


renderFooter() {
  if (noMore) return null
  return (
    <View style={{justifyContent: 'center', alignItems: 'center', height: 50}}>
      <Progress.Circle
        size={20}
        indeterminate={true}
        color={"#000"} />
    </View>
  )
}

render() {
  return (
  <ListView
    style={{flex: 1}}
    refreshControl={
      <RefreshControl
        ...
      />
    }
    onEndReached={this.loadMore.bind(this)}
    onEndReachedThreshold={10}
    scrollEventThrottle={150}
    dataSource={new ListView.DataSource({ rowHasChanged: (row1, row2) => row1 !== row2 }).cloneWithRows(articles)}
    ...     
    renderFooter={this.renderFooter.bind(this)} />
  )
}

When it reaches the bottom, the animation on it stops or goes to a crawl.
I've tested this on an iPhone 5S, iPhone 7 simulator, and Nexus 6P.

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