環境建置 Environment
React-Native屬於NodeJS的一個套件,所以在建置開發環境時,要先安裝NodeJS。
以下安裝套件都將以在Terminal上下command的方式進行。
React-Native is a kit belong to NodeJS. If you want to develop React-Native project, you have to install NodeJS first. Please use Terminal to install the tools below.
Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
一個macOS使用的套件管理工具。NodeJS的安裝需要使用到這個套件管理工具。
A tool for manage packages in mac OS.
NodeJS
brew install node
Watchman
brew install watchman
可以即時查看修改內容的套件。
Display UI immediately after modified.
React-Native
npm install -g react-native-cli
在NodeJS上加入React-Native套件。
Add React-Native kit into NodeJS.