v8.0 migrates react-native-zip-archive from Legacy Native Modules to TurboModules (React Native New Architecture). This brings:
- Better performance through lazy loading
- Type safety via Codegen
- Support for React 18 concurrent features
| v7.x | v8.0 | |
|---|---|---|
| React Native | >= 0.60.0 | >= 0.70.0 |
| React | >= 16.8.6 | >= 18.0.0 |
| Android API | >= 21 | >= 23 |
| Architecture | Legacy | New Architecture (TurboModules) |
JavaScript API is unchanged. No code changes needed in your app other than enabling New Architecture.
npx react-native --versionIf you're on React Native < 0.70, you must either:
- Upgrade React Native to 0.70+ (recommended)
- Stay on v7.x of this library
Follow the official React Native guide.
Android: In android/gradle.properties:
newArchEnabled=trueiOS: Reinstall pods with New Architecture enabled:
cd ios
RCT_NEW_ARCH_ENABLED=1 pod installnpm install react-native-zip-archive@latestiOS:
cd ios
rm -rf Pods Podfile.lock build
pod install
cd ..Android:
cd android
./gradlew clean
cd ..
npx react-native start --reset-cacheRun your app and test zip/unzip operations.
If you encounter issues:
npm install react-native-zip-archive@^7.0.0| Issue | Solution |
|---|---|
| "Native module not found" | Ensure New Architecture is enabled in your app |
| Build fails on iOS | Delete ios/Pods and ios/Podfile.lock, then pod install |
| Build fails on Android | Run ./gradlew clean and clear Metro cache |
| Works on Android but not iOS | Ensure you ran RCT_NEW_ARCH_ENABLED=1 pod install |
| Expo Go shows "Native module not found" | Use Expo Development Build instead |
- Check the playground app for working examples
- Open an issue on GitHub