React Native library for secure storage using iOS Keychain and Android Keystore. Current stable version is 3.0.1, released in 2023. v3 introduced breaking API changes, renamed and expanded methods (e.g., setItem/getItem), and requires Android minSdkVersion 23. Provides AES-GCM encryption on Android and uses iOS biometric authentication. Supports multiple value operations like multiSet, multiGet, multiRemove, and getAllKeys. Compared to react-native-keychain, it offers a simpler async/await API and TypeScript types.
npm install rn-secure-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic set and get operations with async/await, showing default import and error handling.
Replace set() with setItem() and get() with getItem().
Update minSdkVersion in android/build.gradle to 23.
Use exists() method instead of exist().
Call RNSecureStorage methods inside useEffect or componentDidMount.
Handle errors gracefully and test on physical devices.
Clear Keystore by calling RNSecureStorage.clear() or uninstall the app.
Change import to: import RNSecureStorage from 'rn-secure-storage'
Use exists() to check before getItem(), or catch the error.
Run 'npx react-native link rn-secure-storage' or reinstall pods with 'cd ios && pod install'