React native is now one of the most usable mobile application development language in market because its easiness. As we all know react native is rapidly evolving so after some time there is always a new version for developers to upgrade. But some of us don’t know the easiest way to Upgrade Current React Native Project Version to Latest Version by simply typing a command in Command prompt in Windows & typing a command in Terminal in MAC OS. So in this tutorial we would Upgrade Current Old React Native Project Version to Latest Version. So let’s get started .
Contents in this project Upgrade Current React Native Project Version to Latest Version:
1. I have a older 0.60 version of react native project and I’ll update that project into latest 0.63.3 version by simply executing a command in Command Prompt in windows & Terminal in MAC. So first we will start the Command Prompt as Run As Administrator in Windows.
2. Now GoTo your react native project folder in command prompt, in my case my react native project is located inside F:React_Native_ProjectsoldVersion . Here is oldVersion is my old version react native project name. We would use f: command to go inside the other drive. Here f is drive name. Now we would use the cd command to enter into next directory or folder. After opening react native project location in Command Prompt we’ll execute the below command. Here is 0.63.3 is the latest version of react native at the time of creating this tutorial.
1
|
npm install —save react–native@0.63.3
|
Screenshot of CMD:
Screenshot of CMD after executing after command:
Now our project is successfully upgraded into latest 0.63 version. To confirm the upgrade process we would execute the
react–native upgrade command in our react native project directory.