First, make sure you have node.js
, yarn
, and the new Expo CLI installed on your machine:
- Install
node.js
from https://nodejs.org/en/download/ - Install Yarn by running:
npm install -g yarn
- Install the new Expo CLI by running:
npm install -g expo
- Install the EAS CLI (for building the app) by running:
npm install -g eas-cli
To build the APK using the preview profile, you will need to use EAS Build instead of the legacy expo-cli
build command. Follow these steps:
- Make sure you're logged in to Expo:
eas login
- Run the following command in your terminal or command prompt to build the APK:
eas build -p android --profile preview
This will generate the APK using EAS Build. The APK will be available for download once the build completes successfully.
To start the web app, run the following command in your terminal or command prompt:
npm run web
This command will initialize the development server and open the web app in your default web browser at http://localhost:19002.