Starting template for expo mobile app development under the city of Bratislava. In general, follow https://docs.expo.dev/, below are some quick references.
- You have to install eas-cli to connect and build project.
npm install --global eas-clieas login- At this point you have to have created expo project. Afterwards add the projectId into
extras.projectIdinsideapp.config.jsfile.
eas build:configureWe are using eas-development builds - read more here https://docs.expo.dev/develop/development-builds/introduction/
Quick reference:
# you'll want eas-cli installed globally
# install local packages
yarn
# local development once you have build installed and are changing only javascript
yarn start
# list existing builds (most of the time, you'll install the latest matching from here)
east build:list
# Android emulator or device build
eas build --profile development --platform android
# iOs simulator build
eas build --profile development-simulator --platform ios
# iOs device build
eas build --profile development --platform ios
# register new iOs device
eas device:createFollow https://docs.expo.dev/deploy/build-project/
Quick reference:
eas build --platform all
# optionally, by platform
eas build --platform android
eas build --platform ioshttps://docs.expo.dev/deploy/submit-to-app-stores/
eas submit -p androidhttps://docs.expo.dev/deploy/submit-to-app-stores/
eas submit -p ios- Public ones available in the final frontend package go to
.env.localprefixed withEXPO_PUBLIC_. Access them usingenvironment.ts. - For builds don't use
.env,.env.productionand similar files, but go toeas.jsonand add environment variables to build objects, so eas build can access them. When running localy the.env.localis used primarily.
- Secrets go to Expo secrets (and are afterwards available in app.config.js - and elsewhere - as environment variables) - see Expo secrets docs.