Expo React Native: From Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null to Uncaught Error: Cannot Find Module 'ExpoSecureStore'

Expo React Native: From Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null to Uncaught Error: Cannot Find Module 'ExpoSecureStore'

I'm attempting to migrate my app from expo go to an expo dev build. Initially when building my dev client, I got an error which said (NOBRIDGE) ERROR Warning: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. Long story short I tried to do a bunch of things to fix it to no avail. I thought that the issue was with AsyncStorage itself so I removed all occurrences of it and tried to use Expo SecureStore instead and hoped it would fix the problem. However, this is not the case. Instead I'm getting the following error: Uncaught Error: Cannot find native module 'ExpoSecureStore'. I've tried to do a complete rebuild and clean, killing metro, remove artifacts, clear caches, reinstall pods, fresh build, and restarting the server. However, it is still not working. I think it is a deeper problem that this. If anyone has any experience please let me know. I've been stuck with this issue for quite some time now.

Answer

Migrating apps can be a real headache, huh? I feel your pain. I once had a similar struggle when trying to switch frameworks. It sounds like you've really thrown the kitchen sink at this problem. Have you double-checked that all the dependencies for Expo SecureStore are properly installed? Maybe it's a version compatibility issue. Also, did you try looking at the Expo logs in more detail? That might give a clue about what's going wrong deeper down. Any luck yet?

Enjoyed this article?

Check out more content on our blog or follow us on social media.

Browse more articles