- Install the npm and expo cli and login
npm install -g expo eas-cli eas login eas whoami
- Initialize a folder/project as expo app using expo cli with bare minimum dependencies
npx create-expo-app <app-name> --template blank
- cd to the app directory i.e
<app-name>
folder and start developing - Install the expo app from playstore. Build the development server using below command and open the expo app to see the development server.
npx expo start
Visit Expo Docs for any issues.
Expo gives the users a free quota to build and package the applications to some extent using the service EAS. To do that an expo dev account is required, it's free. To learn more about the eas - visit EAS
- Initialize/Connect the local setup to a project in expo dev account.
- Create a project in the expo.dev and get the project id.
-
eas init --id <project id>
- Configure the project using the following command, it will add a eas.json file defaulting to internal development build details.
eas build:configure
- To build an apk version of the application modify the eas.json file, modify the values in
build.preview
"preview": {
"android": {
"buildType": "apk"
}
},
- To submit the build to eas as an apk, use this
This will build an apk version of the application and can be downloaded on the device and used. It can also be sent to playstore, but that requires additional setup. Visit the EAS docs for more info.
eas build -p android --profile preview