Step 1: Install create-react-native-app
After installing NodeJS and NPM successfully in your system you can proceed with installation of create-react-native-app.
C:\Users\Codeplay> npm install -g create-react-native-app
Step 2: Create project
Create your reactnative project in your required folder for following method
C:\Users\Codeplay One>d: //change my drive
D:\>cd reactnative // change foldername
npx react-native init projectfolder
Note: Before continuing, you should, by now, have started your Android emulator or connected a real device to your machine.
Next, start the Metro Bundler using the following commands:
You need to leave Metro running. So open a new terminal and run the following commands to compile and launch your application in the Android emulator:
npx react-native run-android
On the iOS Simulator (macOS only) you can do this by running:
npx react-native run-ios