LoginSignup
0
0

More than 3 years have passed since last update.

React Native CLI環境構築手順

Last updated at Posted at 2021-03-04

react nativeの立ち上げを行います。
まずexpo-cliをインストールするのですが、

npm install expo-cli --global

インストールしているのになぜかexpo not foundが表示される

export PATH=$PATH:~/.npm-global/bin

source ~/.bash_profile

ここで、だいぶ時間を食ってしまいましたが、pathが通っていなかったのが問題だったようです。
上記のコマンドを打てば解決しました。

expo init react-temp

expoを立ち上げます。
image.png

ここではblankを選択します
続いて

cd react-temp
yarn start

で環境構築完了です

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