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); });