Adding componentWillReceiveProps
solve the problem:
componentWillReceiveProps(newProps) {
this.setState({
dataSource: this.state.dataSource.cloneWithRows(newProps.data),
});
}
solved ReactJS listView to React Native ListvIew
Adding componentWillReceiveProps
solve the problem:
componentWillReceiveProps(newProps) {
this.setState({
dataSource: this.state.dataSource.cloneWithRows(newProps.data),
});
}
solved ReactJS listView to React Native ListvIew