Skip to content

Create React Native Application

Prerequisites

  1. Node should be installed
  2. Android studio should be installed
  3. Java should be installed
  4. Environment variables should setup for both java and android sdk and packages
  5. Either a simulator (abd devices should be up and running or use USB to get output on your mobile phone).
  6. For all the step above follow the official documentation.

Note: I will be only creating a android application, IOS have some extra steps involved so please refer some other documentation.

Initialising react native project

Run the the following command

npx react-native init <project-name>

A folder will be created with the name <project-name>. Go inside the folder.

Run the project

run the following command

npx react-native run-android