create new app react native code example

Example 1: create react native app

npx react-native init AwesomeProject

Example 2: create react-native project

npx react-native init AwesomeProject

Example 3: download and install react native

npm install -g react-native-cli

Example 4: new create react app

npx create-react-app my-app
cd my-app
npm start
//Note:npx on the first line is not a typo — 
//it’s a package runner tool that comes with npm 5.2+.

Example 5: how to create a new react native project

$ npx react-native init firstapp