How to Install React Native on Mac OS with Xcode and Android Studio
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
- Open Xcode, Xcode > Preferences
- Go to the Locations tab
- Selecting the most recent version from the Command Line Tools dropdown
- Install cocoapods to MAC OS
sudo gem install cocoapods
sudo gem update — system
sudo gem install -n /usr/local/bin cocoapods
CocoaPods manages library dependencies for your Xcode projects.