React Native Installation in Mac
Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
if you are using mac, you have to enter your password and you have to type two more command , that you will get instructions in the end to set the path
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/ <username> /.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
verify brew installation using
brew doctor
once done we can move to next step that is installing node watchman, OpenJdk
brew install node
brew install watchman
brew tap homebrew/cask-versions
brew install --cask zulu11
you can install openjdk as well
install android studio and andriod sdk
To do that, open Android Studio, click on "More Actions" button and select "SDK Manager".
also run adb command line
brew install android-platform-tools
set andriod home
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
echo $ANDROID_HOME
New project
npx react-native@latest init AwesomeProject
Yay! your first app is created!