Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

AsyncStorage getAllKeys seperately

importData = async () => {
  try {
    const keys = await AsyncStorage.getAllKeys();
    const result = await AsyncStorage.multiGet(keys);

    return result.map(req => req).forEach(console.log);
  } catch (error) {
    console.error(error)
  }
}
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #AsyncStorage #getAllKeys #seperately
ADD COMMENT
Topic
Name
9+1 =