Skip to content

Getting Started in React Native

Environment setup

  1. Make sure to install android studio, jdk 11 or above and set paths as stated by official documentation. docs
  2. To get the output shown on mobile using USB cable follow these docs.

Creating project

  1. Initialise the project - npx react-native init AwesomeProject. Reference
  2. To run the project - npx react-native run-android and npm start in the project directory. (make sure that your phone is connected, you can check this by running command adb devices. If this command you shows a connected devices and you are all set.)
  3. If the project does not run and shows error reinstall watchman or run npm install in root folder.