Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to coexist multiple versions of React Native in a project? #47330

Closed
nanatlantica opened this issue Oct 31, 2024 · 5 comments
Closed

How to coexist multiple versions of React Native in a project? #47330

nanatlantica opened this issue Oct 31, 2024 · 5 comments
Labels
Needs: Author Feedback Type: Question Issues that are actually questions and not bug reports. Type: Unsupported Version Issues reported to a version of React Native that is no longer supported

Comments

@nanatlantica
Copy link

Description

My project is currently using version 0.64.2, and I want to switch to version 0.72.5. However, since there are many pages, I cannot switch all at once and need to do it gradually. Therefore, I hope to create two different dynamic libraries for the different versions of React Native. Is this feasible? Or are there other solutions?

Steps to reproduce

My project is currently using version 0.64.2, and I want to switch to version 0.72.5. However, since there are many pages, I cannot switch all at once and need to do it gradually. Therefore, I hope to create two different dynamic libraries for the different versions of React Native. Is this feasible? Or are there other solutions?

React Native Version

0.72.5

Affected Platforms

Runtime - iOS

Output of npx react-native info

macOS : 15.0.1
iOS : 16.7.10

Stacktrace or Logs

null

Reproducer

https://github.com/nanatlantica/RNDynamic.git

Screenshots and Videos

No response

@react-native-bot react-native-bot added the Type: Unsupported Version Issues reported to a version of React Native that is no longer supported label Oct 31, 2024
@react-native-bot
Copy link
Collaborator

⚠️ Unsupported Version of React Native
ℹ️ It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

@react-native-bot
Copy link
Collaborator

⚠️ Unsupported Version of React Native
ℹ️ It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

@shubhamguptadream11 shubhamguptadream11 added the Type: Question Issues that are actually questions and not bug reports. label Oct 31, 2024
@react-native-bot
Copy link
Collaborator

⚠️ Issue is a Question
ℹ️ We are using GitHub issues exclusively to track bugs in React Native. GitHub may not be the ideal place to ask a question, but you can try asking over on Stack Overflow, or on Reactiflux.

@shubhamguptadream11
Copy link
Collaborator

@nanatlantica Instead of migrating to 0.72.5 which is currently an unsupported version. You can try migrating to latest 0.75.x.

@cortinico
Copy link
Contributor

Is this feasible? Or are there other solutions?

This is not easily doable. Expo was doing so with Expo Go, but you'll have to vendor react native and is a huge work (i.e. you'll have to rename a lot of classes to like ReactActivity.kt -> ReactActivity64.kt and ReactActivity72.kt).

I don't think is worth the effort and our suggestion is just to spend the time to migrate to the latest version, also as @shubhamguptadream11 suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Type: Question Issues that are actually questions and not bug reports. Type: Unsupported Version Issues reported to a version of React Native that is no longer supported
Projects
None yet
Development

No branches or pull requests

4 participants