React-native-elements: List pull to refresh + infinite scroll

Created on 8 Apr 2017  路  1Comment  路  Source: react-native-elements/react-native-elements

I really love the list component but I have a question.

Before react-native-elements, I used list view with RefreshControl. This worked fine, but looked ugly. I also used infinite scroll to load more content.

I felt like this only rendered the items in the viewport, to optimize performance. I have large data sets and need this behavior.

So I guess my question is singular: what's the best way to implement this functionality with the beautiful elements of this module?

Most helpful comment

Never mind. I'm an idiot, it's in the readme. I just completely missed it.

In case anyone else is ever also an idiot, and finds this issue:

render () {
  return (
    <List>
      <ListView
        renderRow={this.renderRow}
        dataSource={this.state.dataSource}
      />
    </List>
  )
}

>All comments

Never mind. I'm an idiot, it's in the readme. I just completely missed it.

In case anyone else is ever also an idiot, and finds this issue:

render () {
  return (
    <List>
      <ListView
        renderRow={this.renderRow}
        dataSource={this.state.dataSource}
      />
    </List>
  )
}
Was this page helpful?
0 / 5 - 0 ratings