react-native-zip-archive icon indicating copy to clipboard operation
react-native-zip-archive copied to clipboard

React Native Zip Archive - Migration to New Architecture

Open sultanmyrza opened this issue 10 months ago • 6 comments

Description

When running the command:

eas build --local --platform android --profile preview

I encountered the following warning:

[RUN_EXPO_DOCTOR] Advice: Use 'npx expo install --check' to review and upgrade your dependencies.
[RUN_EXPO_DOCTOR] The following issues were found when validating your dependencies against React Native Directory:
[RUN_EXPO_DOCTOR] Untested on New Architecture: react-native-zip-archive

Temporary Solution

As a temporary workaround, based on https://docs.expo.dev/guides/new-architecture/#third-party-libraries-and-the-new-architecture I added the following configuration to my package.json:

"expo": {
  "doctor": {
    "reactNativeDirectoryCheck": {
      "exclude": ["react-native-zip-archive"],
      "listUnknownPackages": false
    }
  }
}

This change suppresses the warning, but it is not a long-term solution.

Request for Migration

A better approach would be to migrate react-native-zip-archive to the New Architecture. Migrating Your React Native Library to the New Architecture.

sultanmyrza avatar Feb 10 '25 03:02 sultanmyrza

Thank you for the feedback. I completely agree that upgrading to a new architecture is essential, and I believe AI tools can significantly ease the process.

plrthink avatar Feb 24 '25 00:02 plrthink

Any progress on this? @plrthink Thanks for this amazing library!

elsa17z avatar Apr 13 '25 03:04 elsa17z

It would be super useful also for us to have this library ported to the new Arch! Unfortunately I dont have experience with porting RN libraries but if I can contribute in some way let me know!

KristianLentino99 avatar Apr 13 '25 09:04 KristianLentino99

@elsa17z @KristianLentino99 unfortunately, I haven’t started on this yet—any contributions would be very much appreciated!

plrthink avatar Apr 15 '25 07:04 plrthink

@plrthink react-native-iap seems to want to migrate to Expo modules and keeping the old react-native-iap for old arch only. Should we do the same thing? Or perhaps use nitro modules. Nitro modules is much faster than turbo modules and turbo modules is faster than expo modules but expo modules has the simplest syntax. https://github.com/mrousavy/NitroBenchmarks

elsa17z avatar Apr 30 '25 04:04 elsa17z

@plrthink react-native-iap seems to want to migrate to Expo modules and keeping the old react-native-iap for old arch only. Should we do the same thing? Or perhaps use nitro modules. Nitro modules is much faster than turbo modules and turbo modules is faster than expo modules but expo modules has the simplest syntax. https://github.com/mrousavy/NitroBenchmarks

Yep expo vs turbo modules are good questions. Off topic but good comment from creator of nitro https://github.com/lynx-family/lynx/discussions/1#discussioncomment-12660498

Most importantly what @mockingbot thinks? He is author at the end of the day...

sultanmyrza avatar May 01 '25 06:05 sultanmyrza

one up for doing this in nitro modules. I think its the simplest path forward here

feledori avatar Jul 04 '25 09:07 feledori

@sultanmyrza Were you building and testing your app with the New Architecture enabled?

josmithua avatar Jul 31 '25 03:07 josmithua

@sultanmyrza Were you building and testing your app with the New Architecture enabled?

New architecture

sultanmyrza avatar Jul 31 '25 05:07 sultanmyrza

In that case it would be good to update the reactnative.directory metadata for this package (https://reactnative.directory/?search=react-native-zip-archive) so that Expo doesn't warn about it, seeing as it has been tested to work with the New Architecture enabled (even though not migrated itself).

josmithua avatar Jul 31 '25 16:07 josmithua