EAS Update vs a new build: what's actually inside your app
Two layers
Expo's documentation describes every build as two layers: a native layer built into the app's binary, and an update layer that can be swapped for other compatible updates.
The native layer contains the compiled platform code: React Native itself, the JavaScript engine, and every installed module that includes native code. It is compiled when the app is built, signed, and distributed through the App Store or Google Play.
The update layer contains the JavaScript bundle and assets such as images and fonts. The native layer loads it at startup.
What is in the package
An iOS .ipa file is a zip archive. Inside is a Payload folder containing the .app bundle. Apple's bundle structure places the main executable and Info.plist at the root, embedded frameworks in Frameworks/, and app extensions in PlugIns/. A React Native app also includes its JavaScript bundle and assets in the same .app folder.
An Android package has the same split in a different shape: compiled code and native libraries, plus the JavaScript bundle among the package's assets.
Info.plist is part of the native layer. It holds values such as the bundle identifier and the text shown when the app requests a permission, which is one reason a permission change cannot ship as an update.
In release builds, the bundle is not plain JavaScript. React Native uses the Hermes engine by default, and Hermes compiles JavaScript to bytecode at build time to improve startup.
What an update does
eas update produces a new bundle and assets, along with a manifest listing them. When the app launches, expo-updates checks for a new update, downloads the manifest and then the files it needs.
The fallbackToCacheTimeout setting controls how long the app waits for that download at launch. It defaults to 0, so the app starts with the most recent update already on the device and the new one runs on the next launch. If no update has ever been downloaded, the app runs the bundle embedded in the binary at build time.
This is why a published fix often appears only after the app is closed and reopened.
Channels and branches
An update reaches the right builds through channels and branches. Each build is created with a channel, such as production or preview. Updates are published to branches. By default, a channel is linked to the branch with the same name, so a production build only receives updates from the production branch. The link can be changed from the CLI, which allows an update to be tested on preview builds before production builds see it.
What can ship over the air
The two layers decide this. Changes limited to JavaScript and assets can ship as an update: copy, styling, layouts, screen logic and images. Changes to the native layer require a new build: adding a library with native code, changing permissions, upgrading the Expo SDK, and anything a config plugin writes into the native project.
Expo's EAS Update FAQ lists native code or native dependency changes and permission changes as things an update cannot do. It also states that updates must follow App Store and Play Store guidelines, including what the updates contain. Apple's App Review Guideline 2.5.2 covers apps downloading code that introduces or changes features or functionality.
Why a native package breaks an update
A library with native code has two halves: JavaScript that the app imports, and native code that the JavaScript calls. An update carries only the JavaScript half. The native half was never compiled into the binaries already installed on users' phones.
When the new JavaScript calls into native code that does not exist in the installed binary, the result is an error or a crash at launch, depending on how the library handles a missing native module. Neither layer is broken on its own. They no longer match.
The same model explains Expo Go. Expo Go is a single native app with a fixed set of native modules compiled in, and it loads a project's JavaScript into that. Expo's documentation notes that Expo Go can only run a project if any native code it needs is present in Expo Go or has a JavaScript fallback. A project that needs other native modules needs its own native layer, which is what a development build provides.
Runtime versions
Runtime versions prevent that mismatch. Expo describes the runtime version as a property that guarantees compatibility between a build's native code and an update. A build carries a runtime version, an update declares the runtime version it needs, and an update is only delivered to builds with a matching value.
Expo offers several policies for setting it. The appVersion policy uses the app's version number, so it changes only when the version is bumped. The fingerprint policy uses @expo/fingerprint, which hashes the parts of the project that affect the native layer, including dependencies with native code, app configuration, config plugins and native project files. Adding a native package changes the fingerprint automatically.
With appVersion, adding a native package without bumping the version allows an incompatible update to reach existing builds. expo-updates may detect the resulting error and roll back to the previous working update, but that is a recovery path, not a safeguard.
Environment variables live in the bundle
Expo inlines variables prefixed EXPO_PUBLIC_ into the JavaScript bundle at bundle time. They belong to the update layer, and Expo warns they are visible in plain text in the compiled app.
The env values in an eas.json build profile apply to builds, not to eas update. I once published an update that was bundled without the right environment variables for this reason. Expo now requires the --environment flag on eas update from SDK 55, which selects the EAS environment whose variables are used for that update.
Because the values are written into the bundle, changing one means publishing a new update. Values that need to change without a release belong on a server the app fetches from, not in EXPO_PUBLIC_ variables.
Summary
An Expo app is a signed native layer plus a swappable bundle of JavaScript and assets. Updates replace only the bundle and assets, apply on the next launch by default, and reach only builds with a matching runtime version. Anything native requires a new store build.
Sources
- Expo docs: How EAS Update works
- Expo docs: Runtime versions
- Expo docs: EAS Update FAQ
- Expo docs: Environment variables in EAS Update
- Expo docs: EAS environment variables usage
- Expo docs: App config
- Expo docs: Fingerprint
- Expo docs: Continuous Native Generation
- Expo docs: Environment variables
- React Native docs: Using Hermes
- Apple: App Store Review Guidelines
- Apple docs: Placing content in a bundle
- Apple docs: Information Property List