thegamenicorus / react-native-timeline-listview

Timeline component for React Native App
https://www.npmjs.com/package/react-native-timeline-listview
MIT License
1.16k stars 184 forks source link

List View is not renderring #23

Closed saravanannnallasamy closed 6 years ago

saravanannnallasamy commented 6 years ago

I have used the Basic Usage timeline list view in my ract-native page. It worked for its default data. But when i include data via componentWillMount()

componentWillMount(){
    var list = CustomerStore.usagelist;
    this.setState({data:list});
    console.log(JSON.stringify(list));
}

the log is printing the data before runnning the render() but the listview is not showing instead it throws a warning

Warning: In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers.

I have also used the flag, but there is no use. <Timeline data={this.state.data} enableEmptySections={true} /> anybody have a solution for this... I am using React-Native :0.38

saravanannnallasamy commented 6 years ago

I have resolved it by add the refreshing available in Pull to refresh and load more type of list view.