Pretty much like the official tutorial here https://facebook.github.io/react-native/docs/tutorial.html:
I have the fetchData
method called in ComponentDidMount
, but according to this, ComponentDidMount
would only be called once after initial rendering of the component. So should I do call the same fetchData
everytime before I navigate back to this ListView, and pass the updated data as props to the ListView, and then update the listView's state parameter accordingly in componentDidUpdate
? Or is there any better way to do this?