-
Notifications
You must be signed in to change notification settings - Fork 26
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
Upgrade React-Native and dependencies #14
Comments
Hello, Following a conversation with @Hagellach37 I have attempted to upgrade react-native to the latest version, following the instructions at https://facebook.github.io/react-native/docs/upgrading#upgrade-based-on-git
At this point, I'm stuck on a build issue (while running As a last resort alternative, I was pondering the option of rebuilding the app from scratch using |
Hi @laurentS, Thanks so much for taking this on! It's an ambitious effort but much appreciated!! Your notes roughly coincide with my experience trying to upgrade the repository and I had to abandon it because of time constraints. I think you're probably on the right track and this is just going to involve a lot of small fixes in various places to get working. From the best I can tell, there's a list of packages that we depend on directly (IE, that we're importing and using):
(The number prefix is how many times it's called.) My hunch is that the errors we start running into initially are mainly due to installed packages being incompatible with the new target version of RN. The workflow there would probably look like:
with the goal of hopefully getting to a point where the errors we encounter start appearing in code within the Like you mentioned, there might be other ways, like trying to rebuild the package. If we went that route, it probably makes sense to just focus on one piece of functionality at at time. For instance:
I think either would be good options depending on whether you're more comfortable figuring out which packages you need to upgrade to get things working vs incrementally re-building the application. |
So I've managed to rebuild most of the app on top of a clean |
Yeaaah! Let us know if you want us to help test :) |
I will! Hopefully I can get an android test build out on Monday. I'll need your help for an iOS build. I'll post an update on slack when I have something usable for non-devs. |
Closing this as it is done, although not merged into master yet |
I would recommend waiting until things are into master before closing as a best practice
Eric Boucher
… On Apr 9, 2019, at 04:49, laurentS ***@***.***> wrote:
Closing this as it is done, although not merged into master yet
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
yeah, good point! I guess it's probably time to think about merging these 227 commits :) |
Submitted by @ericboucher and copied into public repository
The react-native version is quite old. It is important to update it. It will also be a good opportunity to try and use clean node-modules again.
In particular, we recently tweaked RCTSRWebSocket.m and RCTScrollView.m to work with more recent versions of iOS, which we shouldn't have to do.
Almost all of our iOS users have iPhones 9.3 or up.
The text was updated successfully, but these errors were encountered: