React Native ListView: Rows are not re-rendering after datasource state has changed.
Here is a simplified version of my code:
First you need to set the datasource
in the getInitialState
function. Then, change the datasource by calling this.setState({})
and passing in the new datasource. It looks like you may have been on the right track above, but I have set up a working example of changing the ListView datasource here . I hope this helps
https://rnplay.org/apps/r3bzOQ