How to Install React Native with Expo - Quick & Easy

runosaduwa

Runo-saduwa

Posted on January 25, 2020

How to Install React Native with Expo - Quick & Easy

Hey there!, so you want to get into mobile development or you're already familier with mobile development and you want to install/set-up React Native on your machine, but your machine is slow😥 and or you live in a country where the cost of good internet data is quite expensive so you can’t afford to install Android studio or Xcode

Never say never!, after reading this you'll have React Native up and running on your machine without consuming ridiculous amount of space on your machine with the help of this life saver called Expo!, Lets get started.

STEP 1 - Install Node.js

If you have the Node 10 LTS or greater installed on your machine. kindly move to the next step!, If you dont, visit nodejs website to install the recommended version for your OS.

STEP 2 - Install the Expo CLI

We'll install Expo CLI with npm, npm comes along with Node, you can confirm this by running the following command.

npm -v

it will print the version of npm installed in your machine.

Now, we install Expo CLI by running the following command:

npm install -g expo-cli

STEP 3 - Create a new React Native project

Run the following commands to create a new React Native project called "NewProject":

expo init NewProject

cd NewProject
npm start # you can also use: expo start

Awesome!!, now you've successfully installed and set-up a new project, next step you'll learn how to run your app.

STEP 4 - Running your React Native application

Install the Expo client app on your iOS or Android phone and connect to the same wireless network as your computer. On Android, use the Expo app to scan the QR code from your terminal to open your project. On iOS, follow on-screen instructions to get a link.

Congratulations!!, You have successfully installed React Native, go forth and build!!!❤️❤️❤️

💖 💪 🙅 🚩
runosaduwa
Runo-saduwa

Posted on January 25, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related