我在ract-native页面(库Basic Usage
)中使用了ract-native-timeline-listview
时间轴列表视图。它适用于其默认数据。
但是当我通过componentWillMount()
componentWillMount() {
var list = CustomerStore.usagelist;
this.setState({data:list});
console.log(JSON.stringify(list));
}
日志在运行render()之前打印数据但是listview没有显示而是抛出警告
警告:在下一个版本中,将呈现空节标题。在此版本中,您可以使用' enableEmptySections'标志以呈现空节标题。
我也使用了旗帜,但没有用。
<Timeline data={this.state.data} enableEmptySections={true} />
有人有解决方案吗?
我正在使用React-Native:0.38