Requirements
Before installing expo-native-storage, ensure your project meets these requirements:- Expo SDK 53+ - This module requires Expo SDK version 53 or higher
- Development builds - This module requires native code and will not work with Expo Go
Install the package
Install expo-native-storage
Add expo-native-storage to your project using your preferred package manager:
Prebuild your project
After installation, generate the native iOS and Android directories:The
--clean flag ensures a fresh build by removing existing native directories before generating new ones.Run your app
Build and run your app on your target platform:This command compiles the native code and launches your app on a simulator/emulator or physical device.
Platform-specific verification
If you encounter issues, verify the module is properly linked on each platform:iOS
Check thatExpoNativeStorage appears in your ios/Podfile.lock:
Android
Verify the module is included in your Android build by checking the gradle dependencies:Troubleshooting
If you encounter the error “Cannot find native module ‘ExpoNativeStorage’”, see the Troubleshooting guide for solutions.Next steps
Quickstart
Start using expo-native-storage in your app with a working example.