0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

シンプルな構成で環境構築する

Expoの公式を見るとインストールするコマンドがあるが、複数のファイルがあってどうしたらいいかわからなかった?

シンプルな構成で使いたい。以下のコマンドを実行すると、必要最小限のファイルだけあるプロジェクトがインストールされる。

npx create-expo-app -t expo-template-blank-typescript

プロジェクト名を聞かれるので、myappで作成した。 

ビルドするときは、iOS/Android/Webを選択することができる。

スクリーンショット 2025-03-28 8.14.13.png

Androidの場合は罠があって、Android Studioを起動してエミュレーターを立ち上げておかないとうまくいかない。

npm run android
npm run ios
npm run web

このような感じで使えます。

スクリーンショット 2025-03-28 8.16.01.png

まとめ

シンプルな構成で環境構築するのを今回はやってみました。学習方法ですが、公式のサイトと動画以外に、Udemyを活用すればアプリ開発の知識は学べました。JavaScriptでクロスプラットフォームの開発に興味がある方は試してみてください。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?