React Native no Mac

Passo 1: Instalar Homebrew

Requisitos no macOs:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Passo 2: Instalar Node.js

brew install node

Passo 3: Instalar watchmen

brew install watchman

Passo 4: Instalar React Native CLI

npm install -g react-native-cli

Passo 5: Instalar Xcode command line tools

Abra o Xcode -> Preferences -> Locations tab -> install the latest version of Xcode command line tools.

Passo 6: Criar seu primeiro projeto react native no MAC

react-native init MyProject

Passo 7: Executar seu projeto

cd MyProject

react-native run-ios

Problemas:

Se tiver problemas com cocoapod, execute este comando:

sudo gem install cocoapods --pre -n /usr/local/bin