Skip to main content

Manual Runtime Versions or Native Fingerprints for React Native OTA?

One JavaScript hotfix and one native dependency upgrade show when the runtime should change.

Updated 4 min readMarkdown
Manual Runtime Versions or Native Fingerprints for React Native OTA?

Imagine an iOS app that has two fixes ready for release. The first corrects a validation message in JavaScript. The second bumps an iOS native dependency and uses an API added in that version.

Both changes produce a new JavaScript bundle. For the validation fix, the installed binary already has everything the bundle needs. The second bundle expects native code that arrives with a new binary. That difference is what the runtime version is meant to capture.

Two releases on the same channel

Say your installed iOS builds use the runtime label ios-native-4 and follow the production channel. You can ship the validation fix on that runtime after testing it against the installed release build. When you ship the native dependency upgrade, the rebuilt iOS app and its OTA uploads move to a new runtime. Both iOS generations can keep following production. If Android's compatibility inputs are unchanged, it can keep its existing runtime.

I find it useful to ask two questions in release review. Which channel should receive the update? Which installed binary can run it? In Bundle Drop, a candidate must match the platform and runtime of the installed app before rollout rules come into play.

Manual versions put the decision in release review

Bundle Drop defaults to explicit runtime versions. With manual versions, the binary and the upload use the platform string in bundle.drop.config.js. A team might keep ios-native-4 for the JavaScript fix, then advance it when the iOS native dependency changes. This fits a team that already reviews changes to native dependencies, build settings, and generated projects before cutting a release.

The tradeoff is that the team owns the label. If a native change slips through without a bump, two incompatible builds can share a runtime. A successful upload tells you the artifact reached the server. Testing against the installed build is how you check the release decision.

Fingerprints put collected native inputs into the identity

Bundle Drop native fingerprinting is Beta and opt-in for Expo and bare React Native. The native build embeds a derived identity, and the OTA upload computes the identity independently from the project. Keep the SDK version, dependency lockfile, native dependencies, configuration, and declared build context aligned between those steps.

runtimeVersion: {
  compatibilitySource: "fingerprint",
},

With the same collected native inputs, a JavaScript-only fix can stay on the existing runtime. When the collector sees the native dependency upgrade, the resulting identity changes, so the old build and the new bundle are in separate runtimes. A collection failure stops the operation.

Coverage matters in both directions. A tooling or JavaScript change inside an autolinked package tree can also change the fingerprint. Some custom compiler settings and externally resolved native artifacts need to be represented explicitly. Treat the fingerprinting coverage guide as part of your build setup.

Hybrid mode adds a deliberate boundary

You can combine the fingerprint with an explicit platform label. I’d use that when the release team wants automatic detection for collected inputs and also needs to mark a native compatibility change that lives outside those inputs. Changing the label changes the identity even when the collected inputs stay the same. Keeping the label steady still produces a different identity when the collected native inputs change.

Expo projects can also choose Expo-owned runtime authority via runtimeVersion: { source: "expo" } and its matching-build receipt workflow. Choose one authority for a binary and its uploads. The Expo runtime guide explains that path.

Build and test the boundary before relying on it

Adopting fingerprinting, returning to manual mode, or changing an explicit boundary requires a native build for the affected platform. Build that binary, generate the OTA bundle from its matching project context, and test the update on an installed release build. Keep publishing compatible fixes for older runtime lines while those builds still have users.

For the two fixes above, I’d ship and verify the text fix against the installed app, then ship the native dependency upgrade through a new binary and test its OTA path separately. You can do both on one channel and keep the two installed audiences working during store rollout.

I build Bundle Drop. This post is adapted from the original guide to choosing an OTA compatibility mode. The Runtime Version docs cover the configuration details.

About the author

  • I'm a React Native engineer and the creator of Bundle Drop, an OTA update platform for React Native and Expo. I write about React Native, OTA updates, mobile release engineering, deployment reliability, Expo, and the engineering decisions behind developer infrastructure. Most of my writing focuses on practical problems: safe rollouts, runtime compatibility, rollback and recovery, patch delivery, release channels, and the lessons learned while building and operating mobile tooling. Bundle Drop: bundledrop.app

No comments yet. Be the first to comment.