Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass object in asyncstorage in react native

try {
    const value = await AsyncStorage.getItem(ACCESS_TOKEN);
    if (value !== null) {
        // We have data!!
        console.log(JSON.parse(value));
    }
} catch (error) {
    // Error retrieving data
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #object #asyncstorage #react #native
ADD COMMENT
Topic
Name
2+2 =