What is the correct way to use AsyncStorage to update state in React-Native?
I'm trying to make a GET request to a server to retrieve a list of products in JSON form. I then want to put the data into AsyncStorage so I can display the products in the view. What's the correct way to do this? What I've researched: on https://facebook.github.io/react-native/docs/asyncstorage.html , in the example, they explain how to retrieve a value from AsyncStorage, not set it and retrieve it at the same time What I have: componentDidMount () { this.fetchProducts() this._loadInitialState().done(); } _loadInitialState = async () => { try { var value = await AsyncStorage.getItem('products