Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native asyncstorage getItem example

getMyStringValue = async () => {
  try {
    return await AsyncStorage.getItem('@key')
  } catch(e) {
    // read error
  }

  console.log('Done.')

}
Source by react-native-async-storage.github.io #
 
PREVIOUS NEXT
Tagged: #react #native #asyncstorage #getItem
ADD COMMENT
Topic
Name
2+3 =