-
Notifications
You must be signed in to change notification settings - Fork 984
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
Research into upgrading react-native #14386
Comments
We use Reagent for Reactjs and Reagent does not support Reactjs version 18 yet reagent-project/reagent#554 |
When attempting to upgrade react-native to 0.65 I currently run into this error while running
Investigating further. |
On opening XCode there is a more detailed version of the error and it is
trying out possible solutions outlined here : https://stackoverflow.com/questions/66805844/xcode-12-4-react-native-build-failed-in-ios-showing-all-messages-command-phasesc |
just wondering if it does make sense to upgrade gradually, i think in each steps there will be lots of issues, just related to the version, so it's better to start upgrading to the latest version imho |
or, i would probably try to create a new project, with our setup and then upgrade the entire project from scratch, because we're working on 2.0 and we'll have lots of testing, so it's a good opportunity to make structure and RN project from scratch, wdyt ? |
Hmm the latest we could go so far would be 0.67. i am currently researching to see what is the least version we can reach without issues. All upgrades will have issues eventually but I wanted to establish some baseline. Also the issues we face in minor upgrades will also exist in major ones so I feel it's better to take on smaller issues one by one.. |
Well that was my initial thought and it would be a better way to upgrade if you could set up a brand new React native app with v0.67 |
One benefit I am seeing right away is that copy-pasting now works on IOS simulators, Screen.Recording.2022-12-09.at.1.42.36.AM.mov |
Nice! |
it's simulator bug, so it works already in develop with IOS 16.1 |
It is now no surprise that the IOS app works with v0.66.5 as well, Reason for stopping at v0.67.5 is that the next version of react-native 0.68.x does not work well with our navigation library : react-native-navigation. Will update this thread with more info. |
so we should go to latest version |
I'll upgrade further and find out if navigation works 👍🏻 |
cc @bitgamma |
@siddarthkay try to change this status-mobile/ios/StatusIm/AppDelegate.mm Line 52 in d81a1a2
with |
@bitgamma : I'll try this again today, |
I fixed the issue with 0.68.5 status-mobile/ios/StatusIm/AppDelegate.mm Line 98 in d81a1a2
I am doing some tests but 0.68.5 seems to be stable 🎉 |
hey @siddarthkay any ETA when we could have 0.68.5 merged ? |
Was focusing past few weeks on RC-1 and currently on 1 task that is in RC-2, I can estimate that there will be a PR ready for QA by end of march month this year 😁 to review. |
So this is the latest error while upgrading to react-native 0.65.3 on Android To fix this we may have to update OkHttp Android Library, aaand the Yak Shaving continues ... |
hmmm, this makes sense : facebook/react-native#31382 , it seems to be a known issue |
on my way to react-native 0.68.x and the build fails when compiling
After looking into the change logs of |
actually we would want to upgrade all react native libs to latest |
After upgrading the following :
We get this issue while cleaning up android and building it :
Seems like some compatibility issue with For time being I will attempt to remove |
Okay so I do get a successful build after doing the following :
next steps :
After these tasks I believe we will have the android side working with react-native 0.68.5 😁 🫣 🤞🏻 |
After using forked libraries of
The app builds and runs successfully with react-native version 0.68 🥳 |
known side effect on IOS Side : #15206 |
hey @siddarthkay could you pls give short update on latest state |
#15203 (comment) is the latest thing and @jakubgs is looking at it |
hey @siddarthkay could you pls give a short update, what's the status of this task? thanks |
@flexsurfer : To deal with errors below i have been given ssh access to one of the MacOS CI hosts, I am trying to recreate and solve on that host. Should have another update early next week.
|
Its safe to close this for now. |
Rn Upgrade helper is here : https://react-native-community.github.io/upgrade-helper/
Current version of React Native is 0.63.5
Attempt to upgrade to 0.68.5
Wish to ultimately reach 0.70.x (So far it's only possible to aim for 0.68.5)
Rough todos below :
Attempt and log findings on upgrading IOS while ignoring Android
- Android Related Stuff
Take care of Libraries specially modified to work with Older Versions of React Native
The text was updated successfully, but these errors were encountered: