Check version installed

$ react-native -v

Example Output

react-native-cli: 0.2.0
react-native: n/a - not inside a React Native project directory //Output from different folder
react-native: react-native: 0.30.0 // Output from the react native project directory

: Initialize and getting started with React Native

To initialize

react-native init MyAwesomeProject

To initialize with a specific version of React Native

react-native init --version="0.36.0" MyAwesomeProject

To Run for Android

cd MyAwesomeProject
react-native run-android

To Run for iOS

cd MyAwesomeProject
react-native run-ios

Upgrade existing project to latest RN version

In the app folder find package.json and modify the following line to include the latest version, save the file and close.

"react-native": "0.32.0"

In terminal:

$ npm install

Followed by

$ react-native upgrade

Add android project for your app

If you either have apps generated with pre-android support or just did that on purpose, you can always add android project to your app.

$ react-native android

This will generate android folder and inside your app.



$ react-native log-android


$ react-native log-ios

Start React Native Packager

$ react-native start

On latest version of React Native, no need to run the packager. It will run automatically.
By default this starts the server at port 8081. To specify which port the server is on

$ react-native start --port PORTNUMBER

If you like this post, don’t forget to share 🙂

This article is written by our awesome writer
Comments to: Command Line Instructions In React Native

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

New Dark Mode Is Here

Sign In to access the new Dark Mode reading option.

Join our Newsletter

Get our monthly recap with the latest news, articles and resources.

By subscribing you agree to our Privacy Policy.

Latest Articles

Explore Tutorials By Categories


Codeverb is simply an all in one interactive learning portal, we regularly add new topics and keep improving the existing ones, if you have any suggestions, questions, bugs issue or any other queries you can simply reach us via the contact page


Welcome to Codeverb

Ready to learn something new?
Join Codeverb!

Read Smart, Save Time
    Strength indicator
    Log In | Lost Password