Skip to content

EAS — Expo Application Services

EAS is Expo's cloud build and submission service for React Native apps. It handles Android/iOS compilation in the cloud, keystore management, and automated Play Store / App Store submissions — no local Android Studio or Xcode required.


Key Concepts

Term What it is
EAS Build Cloud compilation — produces .aab (Android) or .ipa (iOS)
EAS Submit Uploads a built artifact to Play Store or App Store
EAS Update OTA JS updates (no build needed) — see EAS Update (OTA)
Channel Named update track (e.g. production, preview) bound to a build profile — determines which installed binaries can receive a given OTA update
Fingerprint Hash of everything that affects the native binary (native deps, permissions, config plugins, app config file itself) — used to decide if an OTA update is safe for a given build
Profile A named build configuration in eas.json (e.g. development, production)
Keystore Android signing certificate — EAS generates and stores it automatically

Setup

npm install -g eas-cli
eas login
eas init          # links the project, injects projectId into app.json

eas.json

The central config file at the project root:

{
  "cli": {
    "version": ">= 16.0.0",
    "appVersionSource": "remote"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "production": {
      "android": {
        "buildType": "app-bundle",
        "autoIncrement": true
      }
    }
  },
  "submit": {
    "production": {
      "android": {
        "track": "internal"
      }
    }
  }
}

Key settings

  • appVersionSource: "remote" — versionCode is managed by EAS, not from app.json. Required when using autoIncrement.
  • autoIncrement: true — EAS increments versionCode automatically on each build. Never set versionCode manually in app.json.
  • buildType: "app-bundle" — produces .aab (required by Play Store since 2021).
  • track: "internal" — submits to the Internal Testing track on Play Console.

Common Commands

# Build for Android (production profile)
eas build --platform android --profile production

# Submit the latest build to Play Store
eas submit --platform android

# Submit a specific local file
eas submit --platform android --path ./build.aab

# Check build status
eas build:list

# Compute the fingerprint of the current working tree
eas fingerprint:generate --platform android --json

# Compare current tree against a specific build's fingerprint
eas fingerprint:compare --build-id <BUILD_ID> --json

EAS Update (OTA)

EAS Update pushes JS-only changes straight to installed apps, skipping the build + store review cycle entirely. It only works for JS/asset changes — any native change (new native dependency, permission, config plugin, SDK bump) still needs a full build + submit.

runtimeVersion policies

app.json/app.config.js needs a runtimeVersion policy — it decides whether a given OTA update is compatible with a given installed binary.

Policy Behavior Tradeoff
appVersion Runtime version = app version string ("2.0.0") Simple, but you must remember to bump version on every native change — an easy mistake to make
sdkVersion Runtime version = Expo SDK version Too coarse — any native change within the same SDK is wrongly treated as compatible
fingerprint Runtime version = hash of everything that affects the native binary Safest, zero manual bookkeeping — recommended default
{ "runtimeVersion": { "policy": "fingerprint" } }

Fingerprint mechanics

  • eas fingerprint:generate --platform <p> --json hashes native-relevant sources: native dependencies (autolinking config), permissions, config plugins, and — surprisingly — some package.json fields like scripts. This over-inclusion is intentional: a false positive just costs an unnecessary rebuild, a false negative would ship a broken OTA update.
  • Every finished build recorded by EAS carries its own fingerprint hash (eas build:list --json → fingerprint.hash field), no extra setup needed.
  • This makes it possible to script a safe-update check: compute the current tree's fingerprint, compare it to the latest build's fingerprint for the target profile, and only run eas update when they match — otherwise fall back to a full build.

Tip

eas fingerprint:compare --build-id <ID> --json returns the full source list for both sides (fingerprint1/fingerprint2), which is the fastest way to see exactly what changed when two fingerprints don't match.

Channels

A channel is a named update track (e.g. production, preview) bound to a build profile via eas.json's channel field. Only installed binaries built from a profile pointing at a given channel receive updates published to it — this is how you can test an OTA on your own device (a separate preview channel/profile) before it reaches real users on production.

{
  "build": {
    "production": { "channel": "production" },
    "preview":    { "channel": "preview", "distribution": "internal" }
  }
}

Publishing and rolling back

# Publish a JS-only update to a channel
eas update --branch production --message "fix: typo in results screen"

# Republish a previous update (rollback to a known-good OTA version)
eas update:republish --group <UPDATE_GROUP_ID>

# Revert to the update embedded in the native binary (undoes ALL OTA updates
# on the channel) — the real safety net for a broken OTA
eas update:roll-back-to-embedded --channel production --non-interactive

Warning

eas update:rollback is interactive-only and will refuse to run with --non-interactive. For scripting, use eas update:roll-back-to-embedded (revert to the shipped binary's embedded update) or eas update:republish (revert to a specific earlier update) instead.


Build Failures — Lessons Learned

1. npm ci peer dependency conflict

Symptom:

npm error code ERESOLVE
npm error ERESOLVE could not resolve

EAS uses npm ci (strict mode) — ^ ranges that work locally can fail on the build server.

Fix:

# .npmrc
legacy-peer-deps=true

Or, better: pin the conflicting package to an exact version instead of a range.

"react": "19.2.3",
"react-dom": "19.2.3"

Tip

react-dom must be pinned to the exact same version as react. Using ^19.2.3 causes an ERESOLVE conflict on EAS even though it works locally.


2. React Native architecture mismatch (Paper APIs removed)

Symptom: Gradle compilation fails with errors mentioning UIManagerModule, LayoutAnimationController, or similar Paper-era APIs.

Root cause: React Native 0.75+ removed the Paper bridge. Libraries compiled against Paper APIs (like react-native-reanimated v3) fail to build.

Fix for reanimated v3 → v4:

npx expo install react-native-reanimated react-native-worklets

Update babel.config.js:

// Before (v3)
plugins: ['react-native-reanimated/plugin']

// After (v4)
plugins: ['react-native-worklets/plugin']

Warning

Always use npx expo install (not npm install) for Expo-managed packages. It pins to the version declared in bundledNativeModules.json for your SDK.


3. expo-doctor version mismatches

Run before every build:

npx expo-doctor

If mismatches are found:

npx expo install --check    # auto-corrects all mismatched versions

bundledNativeModules.json (inside node_modules/expo/) is the source of truth for expected package versions per SDK.


4. Multiple build profiles sharing one package/bundle ID collide on-device

Symptom: installing an internal-distribution build (e.g. a preview profile meant for sideloading) on a device that already has the store-installed build fails with a generic "app not installed" error.

Root cause: both builds declare the same Android package / iOS bundleIdentifier. Android treats an install with a matching package name as an update to the existing app, and checks the signing certificate — Play Store builds are re-signed by Google Play App Signing, while a directly-distributed build is signed by EAS's own keystore. The mismatch is what gets rejected, not the APK itself.

Fix: give non-production profiles a distinct package ID via a dynamic config (app.config.js) reading a per-profile env var:

// app.config.js
const IS_PREVIEW = process.env.APP_VARIANT === 'preview';

module.exports = {
  expo: {
    name: IS_PREVIEW ? 'MyApp (Preview)' : 'MyApp',
    android: {
      package: IS_PREVIEW ? 'com.example.myapp.preview' : 'com.example.myapp',
    },
  },
};
// eas.json
{ "build": { "preview": { "env": { "APP_VARIANT": "preview" } } } }

The two variants then install side by side as separate apps, and EAS generates a separate keystore automatically the first time it builds a profile with a package ID it hasn't signed before.

Tip

A static app.json can't read environment variables — this pattern requires converting to app.config.js (or .ts). Once converted, drop app.json entirely; having both is a common source of "why isn't my change applying" confusion since app.config.js takes precedence.

5. EAS Submit rejects a versionCode it already submitted

Symptom:

Something went wrong when submitting your app to Google Play Store.
You've already submitted this version of the app.

Not a real failure — Google Play refuses to accept the same versionCode twice, so a retried/duplicate submit for a build that already went through errors out. Check the submission history (or the Play Console release list) before assuming something is broken and re-running a full build.

Note

EAS's status page (status.expo.dev) can show a transient "partial outage" banner (e.g. elevated queue times) on eas submit/eas build without actually blocking the run — a build or submit can still complete successfully while the banner is up.


Version Management

  • version in app.json → user-visible string (e.g. "2.0.0") — update manually
  • versionCode → internal Android integer — let EAS manage it with autoIncrement: true
  • Never set both appVersionSource: "remote" and a hardcoded versionCode in app.json

Play Store Submission Flow

EAS Build → .aab artifact
    ↓
EAS Submit (or manual upload)
    ↓
Play Console — Internal Testing track
    ↓
Promote to Closed Testing → Open Testing → Production

For automated submission, EAS needs a Google Service Account JSON:

  1. Play Console → Setup → API access → Create service account
  2. Grant "Release manager" role
  3. Download JSON → provide path to eas submit

CI/CD with GitHub Actions

# .github/workflows/release.yml
on:
  push:
    tags: ['v*']

jobs:
  build-and-submit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
      - run: npm ci
      - uses: expo/expo-github-action@v8
        with:
          eas-version: latest
          token: ${{ secrets.EAS_TOKEN }}
      - run: eas build --platform android --profile production --non-interactive
      - run: eas submit --platform android --non-interactive

Required GitHub secrets: - EAS_TOKEN — from expo.dev → Account Settings → Access Tokens - GOOGLE_SERVICE_ACCOUNT_KEY — service account JSON (base64 or raw)


Checklist Before First Build

  • [ ] eas.json has appVersionSource: "remote"
  • [ ] versionCode not hardcoded in app.json
  • [ ] .npmrc has legacy-peer-deps=true if needed
  • [ ] npx expo-doctor passes (21/21)
  • [ ] npm run typecheck && npm run lint — 0 errors
  • [ ] app.json has correct bundleIdentifier (iOS) and package (Android)