I am using AsyncStorage to store and retrive some information (like name, email) in application. when i call setItem it returns the promise "_45":0,"_65":0,"_55":null:"_75":null and getItem also return the same. How do i set/get the value in AsyncStorage? I am using the following code :
export async function setItem(key, value) {
try {
var data = await AsyncStorage.setItem(key, value);
} catch (error) {
}
}
export async function getItem(key) {
try {
var item = await AsyncStorage.getItem(key);
if(item !== null) {
return item;
}
} catch (error) {
}
}
Thanks in advance.