In my current implementation, I am utilizing AsyncStorage.setItem() to store a string key and JSON object in AsyncStorage. For example: https://i.sstatic.net/qjiCD.png
However, upon retrieving data from AsyncStorage using getAllKeys() and multiGet(), it has become apparent that I only need access to the objects themselves without needing the keys.
What would be the most efficient way for me to exclusively retrieve the stringified objects? Below is my current function where 'element' represents the keys and values:
importData = () => {
AsyncStorage.getAllKeys().then(keys => AsyncStorage.multiGet(keys)
.then((result) => {
result.map(req => req.forEach((element) => {
this.setState({ favorites: JSON.parse(element) });
console.log(this.state.favorites);
}));
}));
}