-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Docs] How to upgrade React Native version (original: How do you update a React Native app with the latest version of React Native?) #1502
Comments
did you try running |
I can update the global node package fine, I'm specifically talking about updating an app that exists already after updating the global package. When you say re-run the packager, do you mean to init a new project? |
I update the |
Thanks Brent, but will that pickup changes to iOS files? I think it would just affect the node_modules/react-native/* correct? |
I guess what I'm looking for is a |
@bretrouse - yup the iOS files will update too, you might have to restart Xcode to be safe. You will occasionally run into problems if new modules are renamed eg: when websocket was added, the included project was renamed from I think a good approach to this will just be to include anything such as the websocket change into the breaking changes in the changelog for each release. Creating an update command is probably overkill here because it will generally be quite straightforward to do. Maybe if this becomes more complicated it will be worth re-visiting. cc @vjeux |
@bretrouse - you raise a good point though, this should be made clear in the docs |
Same problem here. I guess making migrations manually is real overhead for the developer. Especially since React Native is now in the early stage with frequent updates. |
To anyone getting here because the debugger no longer works after upgrading react native, it's because as @brentvatne pointed out, To fix this, I had to start a new react native project and copy the |
|
@chirag04 Just wanted to clarify if the command is |
yes, it's upgrade. Thanks for pointing out. |
If I upgrade my app following this doc: https://facebook.github.io/react-native/docs/upgrading.html |
Implementation problum in android. https://cloud.githubusercontent.com/assets/12196308/16729003/714ba294-4787-11e6-9e76-cc1dcdcdeb16.png |
To elaborate more on what @nodkrot said: I'm running into the exact same issue. I have many 3rd party plugins - for analytics, push notifications, user authentication, etc - and every time I upgrade I have to fix these conflicts. Even things for the launch icons. What's interesting is that this isn't like a git merge either. I keep having to do the same files over and over again with each RN release but it doesn't seem like they have actually changed. An example would be the |
@uc-hus Better ask this on StackOverflow. |
The title says it all.
The text was updated successfully, but these errors were encountered: