Skip to content

Latest commit

 

History

History
42 lines (41 loc) · 1.72 KB

EasBuildInfo.md

File metadata and controls

42 lines (41 loc) · 1.72 KB

Development

  1. Install the npm and expo cli and login
    npm install -g expo eas-cli
    eas login
    eas whoami
  2. Initialize a folder/project as expo app using expo cli with bare minimum dependencies
    npx create-expo-app <app-name> --template blank
  3. cd to the app directory i.e <app-name> folder and start developing
  4. 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.

Production/Build

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

  1. 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>
  2. Configure the project using the following command, it will add a eas.json file defaulting to internal development build details.
    eas build:configure
  3. To build an apk version of the application modify the eas.json file, modify the values in build.preview
  "preview": {
  "android": {
    "buildType": "apk"
    }
  },
  1. To submit the build to eas as an apk, use this
    eas build -p android --profile preview
    
    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.