React Native 開發環境

#React Native

whck6

Homebrew

brew -v
Homebrew 1.4.3
Homebrew/homebrew-core (git revision a76c8; last commit 2018-01-11)

Node

brew install node
node -v
v8.9.4

Watchman

brew inatall watchman
watchman -v
4.9.0

追蹤檔案的變化。

Command-line

npm install react-native-cli
react-native -v
react-native-cli: 2.0.1

指令工具用於創建專案,初始化,更新,打包服務等任務。

Flow、Yarn

brew install flow
npm install -g yarn 
yarn -v
1.3.2

檢查 JavaScript 語法錯誤與更高效能的第三方套件管理工具,可取代 npm

https://brew.sh https://facebook.github.io/react-native/docs/getting-started.html