Native command line Instructions

What are React Native command line Instructions?

  • Lines start with react-native or npx react-native
  • Commands follow thirdnpx react-native
  • Some commands are separated by hyphen e.g. run-android
  • Options follow after commands npx react-native
  • Options can take arguments react-native
  • Only --help has an alias: -h

Initialising projects

Initialize a new React Native project named in a directory of the same name.

Package Management

Installs a single package from npm and then links native dependencies. If the install detects Yarn and lock in your project, it will use Yarn as package manager. Otherwise, npm will be used.

Running, Building & Deployment

Starts the server that communicates with connected devices.