All morning I've been trying to get the AsyncStorage.getItem to return the value of the actual item, not a promise.
Here's what I have that according to everything I've read should work:
export async function getToken(){
try{
var value = await AsyncStorage.getItem('authToken');
return value;
}catch (error){
console.log(error);
}
}
I have tried chaining together many .thens, tried accessing the actual value field of the promise, but for some reason that returns a promise also. I've tried pretty much every suggestion on this site and it will always return a promise.