LoginSignup
3
3

More than 5 years have passed since last update.

windowsにreact-native環境を構築する

Last updated at Posted at 2018-08-15

windowsにreact-native環境を構築する

はじめに

react-native環境をwindows上に構築したのですが、ちょっと手こずったところを備忘録的に書きたいと思います。

node.jsをwindowsにインストール

下記の記事がすごくわかりやすかったです。
Node.js / npmをインストールする(for Windows)
https://qiita.com/taiponrock/items/9001ae194571feb63a5e

react-native-windowsのインストール

node.js command promptを開いて、以下のページを参考にコマンドを入力していきます。
https://github.com/Microsoft/react-native-windows/blob/HEAD/docs/GettingStarted.md

npm install -g react-native-cli
react-native init SampleProject --version 0.55.0

2018/8/15現在、--version 0.55.0 でバージョン指定しないと、後々react-native windowsコマンドを実行したときに以下のように怒られてしまいます。

01.png

あとはGetting Startedの通りに

cd SampleProject
npm install --save-dev rnpm-plugin-windows
react-native windows

ここまでいくとSampleProjectの下に「windows」フォルダができ、さらにその中に「SampleProject.sln」ができています。

3
3
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
3
3