1importData = async () => {
2 try {
3 const keys = await AsyncStorage.getAllKeys();
4 const result = await AsyncStorage.multiGet(keys);
5
6 return result.map(req => JSON.parse(req)).forEach(console.log);
7 } catch (error) {
8 console.error(error)
9 }
10}
11