Use this command to create a new project without quotes in command.
react-native init “project_name”
(Environment Setup) [https://reactnative.dev/docs/environment-setup]
We have to install all of the dependencies in the project workspace.
Node Modules dependency installation
npm install
Cocoapods iOS dependency
pod install
Run this command on terminal
react-native run-ios
npx react-devtools
Android development guide
Add the following lines to your $HOME/.bash_profile or $HOME/.bashrc config file:
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-toolsadb devices
npm run android npx react-native start npx react-native run-android
The chmod command sets the permissions of files or directories
chmod 755 android/gradlew
npx react-native run-android --port=8080
emulator -avd Android_pixel