This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Description
Hi, What is good way to fetch data to ListView?
I using this way it works but it got this warning!
(In this release you can use 'enableEmptySections' flag to render empty section headers.)
constructor(props) {
super();
this.state = {
dataSource: new ListView.DataSource({
rowHasChanged: (row1, row2) => row1 !== row2,
})
};
}
observe(props, state) {
return {
todos: new Parse.Query('Todo')
};
}
<ListView
dataSource={this.state.dataSource.cloneWithRows(this.data.todos)}
renderRow={this.renderRow}
/>