react-nativeexpoasyncstorage

AsyncStorage is null: Expo SDK 52, React Native 0.76 and AsyncStorage 1.23.1


I´m new to React Native. I'm using Expo SDK 52, React Native 0.76 and AsyncStorage 1.23.1. By the time I open my app using Expo Go on Android and use "AsyncStorage.getItem", I get the "AsyncStorage is null" error.

Has anyone already solved this before? Already tried lots of things related to autolinking but the error persists.


Solution

  • Solved it, the app is working fine with AsyncStorage.

    I had to manually uninstall the app from my phone, and let Expo Go install it again from scratch. An installation should be needed from scratch every time we add a native module (such as AsyncStorage) to the app.