Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass object in asyncstorage in react native

AsyncStorage.setItem(ACCESS_TOKEN, JSON.stringify(responseData), (err)=> {
    if(err){
        console.log("an error");
        throw err;
    }
    console.log("success");
}).catch((err)=> {
    console.log("error is: " + err);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #object #asyncstorage #react #native
ADD COMMENT
Topic
Name
6+7 =