必要なものを入れる
まずはHomeBrew入れておきます。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
必要なパッケージを入れる。
brew install node
brew install watchman
React Native CLIを入れる。
npm install -g react-native-cli
開発環境
Atom + React Nativeパッケージで開発します。
Atomは下記からダウンロード
https://atom.io/
Atomのパッケージインストールで下記を入れる。
- atom-react-native-autocomplete
- atom-react-native-css
デバッグ環境
chromeのConsoleで可能ですがStandaloneのDebuggerの方が諸々便利なので入れておきます。
brew cask install react-native-debugger
まとめ
開発環境までの準備も非常に簡単ですぐに始められるのが良いですね。
Please enjoy React Native.
参考URL
React Native公式
https://facebook.github.io/react-native/docs/getting-started.html
React Native Debugger
https://github.com/jhen0409/react-native-debugger