@wepin/storage-rn v1.0.0
@wepin/storage-rn
Wepin Storage package from React Native. This package is exclusively available for use in android and ios environments.
⏩ Install
⚠️ Important Notice for v1.0.0 Update
🚨 Breaking Changes & Migration Guide 🚨
This update includes major changes that may impact your app. Please read the following carefully before updating.
🔄 Storage Migration • In rare cases, stored data may become inaccessible due to key changes. • Starting from v1.0.0, if the key is invalid, stored data will be cleared, and a new key will be generated automatically. • Existing data will remain accessible unless a key issue is detected, in which case a reset will occur. • ⚠️ Downgrading to an older version after updating to v1.0.0 may prevent access to previously stored data. • Recommended: Backup your data before updating to avoid any potential issues.
🔧 How to Disable Backup (Android)
Modify your AndroidManifest.xml file:
<application android:allowBackup="false" android:fullBackupContent="false">
🔹 If android:allowBackup is true, the migration process may not work correctly, leading to potential data loss or storage issues.
npm install @wepin/storage-rn
or
yarn add @wepin/storage-rn
peerDependencies
npm install react-native-encrypted-storage
# for ios
cd ios
pod install
or
yarn add react-native-encrypted-storage
# for ios
cd ios
pod install