How to Install React Native on Mac OS with Xcode and Android Studio

Rakesh Samal
1 min readDec 14, 2022

--

React Native becoming very popular among Android and iOS developers because of its cross-platform native development technique.

Step 1. Install Homebrew :
To install Homebrew open your terminal prompt and type the below command

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

Step 2. Install Node.js :
The next step is to install the node.js online using command.

brew install node

Step 3. Install watchmen :

brew install watchman

Step 4. Install React Native CLI :

npm install -g react-native-cli

Step 5. install Xcode :

Download Xcode via Mac App Store

  1. Open Xcode, Xcode > Preferences
  2. Go to the Locations tab
  3. Selecting the most recent version from the Command Line Tools dropdown
  4. Install cocoapods to MAC OS
sudo gem install cocoapods

or

sudo gem update — system
sudo gem install -n /usr/local/bin cocoapods

CocoaPods manages library dependencies for your Xcode projects.

--

--

No responses yet