-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 update project to latest React Native version? #1050
Comments
I think that if you used react-native-cli command to create your project, you just need to change the version in the react dependency inside package.json and the run npm update |
Thank you, that was the ticket. |
This is an old question; on December 5, 2016, facebook have introduced Usage
or, using Yarn:
Then, run it inside your project directory:
Note: Do not run 'npm install' to install a new version of react-native. The tool needs to be able to compare the old and new project template to work correctly. Simply run it inside your app folder as shown above, while still on the old version. See documentation: https://facebook.github.io/react-native/blog/2016/12/05/easier-upgrades.html |
old version has index.android.js and index.ios.js |
@varunchandran333 here's a way #14246 |
I haven't been able to figure out how to update my project to the latest version of React Native.
Is there an official way to update? Apologies if this is a newb question. Thanks!
The text was updated successfully, but these errors were encountered: