LoginSignup
4
4

More than 5 years have passed since last update.

Gakuです。
reactでiOS,Androidアプリが作れるそうなので環境構築してみた備忘録です。
React勉強すれば、iOS,Android,Webのフロントが作れるので、うまくいけば一石三鳥くらいありそうです。

環境構築

1.Xcodeをインストールする。

2.brewをインストール&アップデート
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew update

3.nodeをインストールする
brew install node

4.watchman,flowをインストール
brew install watchman
brew install flow

5.react-nativeのインストール
npm install -g react-native-cli

6.プロジェクトを作成する
react-native init testapp

これで、React-nativeプロジェクトが作成されるので、iOSフォルダ内のプロジェクトファイルをXcodeで開けばOKです(=゚ω゚)ノ
こんな感じになります。
スクリーンショット-2016-01-30-16.03.40.png

おわりに

楽しいreact!地獄のredux(´・ω・`)
もっと勉強したい今日この頃。。。

転載元

こちらでも掲載しております。
Gaku's Memo-React Nativeを使ってiOSアプリ作る

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4