I'm developing an app in Expo and am facing a very simple problem.
Inside of my App.js:
AsyncStorage.setItem("test", "testVal").then((res) => {
AsyncStorage.getItem("test", (value) => {
console.log("VALUE: " + value);
});
});
The code above logs VALUE: null
, instead of VALUE: test
. Any ideas on what could be going wrong?
(Using EXPO Version 3.17.21)
Please login or Register to submit your answer