One codebase, both app stores

One Expo codebase ships to iOS and Android with no Mac on my desk. Here's the pipeline, and the feature that lets a bug fix skip the review queue.

Prabir Singh, profile photoPrabir Singh·
·Updated ·11 min read
Editorial illustration: One patterned source ribbon branches into two differently shaped mobile devices.
In this article
  1. 01Two codebases means two versions of the truth
  2. 02EAS Build does the Mac maze so you don't
  3. 03The pipeline, end to end
  4. 04EAS Update: fix a bug without asking Apple
  5. 05The two stores are not twins
  6. 06Where it still bites
  7. 07Decide what kind of release you are making
  8. 08Frequently asked questions
  9. 09Ship once, land twice

Two codebases sounds like twice the work. It's worse than that.

The old way to ship a mobile app was to build it twice. Swift for iOS, Kotlin for Android, and a Mac humming in the corner because you couldn't make an iPhone build without one. Two teams. Two bills. And slowly, quietly, two different opinions about what your product actually does.

I don't work that way, and I don't ask a founder to pay for it. One Expo codebase goes to both stores. Here's the real pipeline, where it shines, where it still bites, and the one feature that means a typo fix doesn't have to wait in line behind Apple's review team.

Two codebases means two versions of the truth

Here's the part nobody puts on the invoice. The second codebase isn't just a second build. It's a second interpretation.

Say a founder has a rule: a booking can be cancelled up to two hours before the slot. The iOS developer writes it one way. The Android developer writes it another way, maybe rounding differently, maybe reading the timezone from a different place. Both pass review. Both look fine in a demo.

Then a user on Android cancels at 1 hour 59 minutes and the app says yes, while their friend on an iPhone gets a no. Now you have a support ticket that no amount of design polish can fix.

That's the bill. Not the hours. The drift.

What one codebase actually shares

The app is Expo and React Native, written in the same TypeScript as the web. Validation, types, and the framework-agnostic business logic live in a shared package that the web client and the phone both import. Change the cancellation rule once, and every surface gets the same answer. It's the one-language argument I make for the whole stack, and it's loudest on mobile, where a second codebase is a second team you probably can't afford.

The shared package lives in the same repo as everything else, which I unpack in one repo, every app.

The honest comparison

QuestionTwo native codebasesOne Expo codebase
Languages to hire forSwift and Kotlin, plus the webTypeScript, everywhere
Where a business rule livesWritten twice, can driftWritten once, shared
Mac needed to build iOSYesNo, EAS builds in the cloud
Shipping a small JS fixFull store releaseOver-the-air update
Deep platform-specific workNative by defaultPossible, via config plugins or a development build

That last row is the real tradeoff, and I'll come back to it. For most products a founder brings me, it's a small price.

EAS Build does the Mac maze so you don't

Building for iOS used to start with a shopping trip. Buy a Mac. Install Xcode. Wrestle provisioning profiles and signing certificates by hand, then do a parallel dance with keystores for Android. A full day of setup before you shipped a single screen.

EAS Build moves all of that into the cloud. Per Expo's docs, it's a hosted service that builds app binaries for both platforms, with iOS running on macOS machines in Expo's cloud, and it can generate and manage your signing credentials or use ones you provide. I don't own a Mac for builds. The machine that used to hate me is now someone else's problem.

The recipe lives with the code

The build config is one file, versioned with everything else, so a build is reproducible instead of tribal knowledge in one person's head.

// eas.json
{
  "cli": { "appVersionSource": "remote" },
  "build": {
    "production": {
      "autoIncrement": true
    }
  }
}

autoIncrement bumps the build number for you, and "appVersionSource": "remote" keeps that counter on EAS's servers. Without it, EAS falls back to editing your local app config, a change a cloud build throws away, so the next build can reuse the number. That sounds trivial. It's the kind of trivial that eats an evening when you forget it and the store rejects your upload for reusing a number.

The pipeline, end to end

One source of truth. Full builds go through the stores. JavaScript-only fixes take the side door.

Three commands carry the whole thing:

  • eas build makes signed binaries for iOS, Android, or both.
  • eas submit uploads them. EAS Submit sends the .ipa to App Store Connect and the .aab to the Play Console, on the track you choose.
  • eas update handles the side door, which is where things get fun.

One note so nobody gets surprised: an iOS build landing in TestFlight is not the same as being live. You still fill in the metadata and submit it for App Review.

EAS Update: fix a bug without asking Apple

This is the feature that changes how it feels to run a live app.

A store release is slow by design. You submit, someone reviews, you wait. For a broken button or a wrong label, that wait is absurd. EAS Update pushes JavaScript, styling, and image changes straight to installed apps, over the air. A user opens the app and quietly has the fix. No new binary, no store listing shuffle.

What ships over the air, and what doesn't

The rule that keeps you out of trouble: OTA covers the JavaScript layer, not the native one. Expo's own docs list changes to native code or native dependencies as the thing EAS Update is not for. Those need a fresh build through the store.

ChangeOver the air?
Fix a logic bug in a screenYes
Adjust copy, colors, layoutYes
Swap an image assetYes
Add a native moduleNo, new store build
Request a new permissionNo, new store build
Upgrade to a new Expo SDKNo, new store build

Learn that line and OTA is a superpower. Ignore it and you'll ship an update that calls native code the installed binary doesn't have, which is a very fast way to crash a lot of phones at once.

Fixes, not features in disguise

Here's where I'm stricter than the tooling. OTA is a scalpel for fixes, not a back door for shipping new features without review. Apple's App Review Guidelines say apps may not download code that introduces or changes features or functionality, and Expo itself notes that changes to your app's behavior need to be reviewed. So I use updates to make the app do what it already promised to do. Anything that changes the promise goes through the front door.

That restraint is cheap insurance. A rejected app on launch week is not.

The two stores are not twins

One codebase does not mean one identical destination. The stores have personalities, and pretending otherwise is how launch dates slip.

Where they differ

Apple App StoreGoogle Play
Review feelStricter, more likely to push backLighter touch
Common frictionUnjustified permissions, login flows, screenshots that oversellBackground work and permission declarations
Push notifications route throughAPNsFCM
Who decides your launch dateUsually this oneRarely this one

Expo's notification layer papers over most of the APNs and FCM difference, so the code stays mostly shared. The calendar does not. When a client wants a hard launch date, iOS is the store that decides whether we hit it, so I plan the buffer around Apple and let Android arrive early.

Where it still bites

I'll keep it honest, because a tool you only hear praised is a tool you'll be surprised by.

  • First-time setup is fiddly. Credentials, store listings, bundle identifiers. Once per app, and worth doing slowly, because a rushed setup haunts every release after it.
  • Some native modules step outside the managed flow. Those need a config plugin or a development build. Doable, and a real step up in complexity.
  • Apple can reject you late. Sometimes for reasons that feel arbitrary. That's why I never promise a store date I don't control.
  • Offline still has to be designed. One codebase doesn't make a phone in a dead zone behave. That's its own discipline, the same one I write about in building the web app like an appliance.

None of that outweighs the win. One codebase, one language, two stores, and a side door for the small stuff. That's a solo builder shipping like a team.

Decide what kind of release you are making

Before reaching for the update command, write down what changed. A useful release review looks like this:

ChangeQuestion to answer first
Copy or styling fixDoes it run against the installed native runtime?
New native dependencyWhich new binary contains the required native code?
SDK upgradeHave both platforms been built and tested against it?
Behaviour changeWhat do the current store policies require?
Bad updateWhich compatible known-good version can users recover to?

Expo's runtime-version guide explains why the native binary and downloaded update must agree. An over-the-air update cannot install a missing native capability.

For a rehearsal, keep one device on the previous supported build. Test login, one important write, background/foreground behaviour and reopening after an update. Record the build version and update identifier with bug reports. Otherwise “it broke on my phone” becomes a detective series with no opening credits.

Treat rollout and rollback as product work. This is the mobile version of the offline recovery problem: the version running in your editor is not necessarily the one a customer has.

Frequently asked questions

Do I actually not need a Mac?

For builds, correct. EAS Build compiles and signs the iOS app on macOS machines in Expo's cloud. You still need an Apple Developer account to publish, and a real iPhone for testing is always a good idea, but there's no Mac required on your desk.

Can I really share code with the web app?

Yes. Types, validation, and framework-agnostic logic live in a shared package that both the web and mobile clients import. The UI stays separate, because React Native doesn't render a <div>, and that's fine. The expensive, bug-prone parts are the ones you share.

How much faster is an over-the-air update than a store update?

An OTA update can reach users the next time they open the app, often within minutes of publishing. A store release waits on review, which can take hours or longer, and Apple is usually the slower of the two. That gap is exactly why I keep fixes on the JavaScript side whenever the change allows it.

Is Expo ready for a serious app?

Yes. The player app in a racket sports platform I built is Expo, shipping to the App Store and Google Play from one codebase, with NativeWind for styling and the same shared types as the web apps. It holds up under real product requirements, not just a demo.

When should I go fully native instead?

When the product is the platform feature. Heavy custom graphics, deep hardware integration, or a team that already has strong Swift and Kotlin engineers can tip the scales. For a booking app, a marketplace, or a dashboard on a phone, one codebase is the better trade.

Ship once, land twice

Building a mobile app twice made sense when the tools forced it. They don't anymore. One Expo codebase, cloud builds that skip the Mac maze, and over-the-air fixes for everything short of native code. That's most of why "we'll want an app too" stopped being a scary sentence in my calls with founders.

If an app is on your roadmap, here's how I approach mobile. Or tell me what you're building, and I'll tell you honestly whether it needs an app at all.

Was this useful?

No account needed. One like per browser; click again to undo.

ShareXLinkedInFacebook
Prabir Singh, profile photo

Prabir Singh

Full-stack engineer in Mumbai. Twenty years in sales taught me why people buy; seven years of code taught me how to build what they'll pay for. I still read error messages the way I once read objections: as the most honest feedback of the day. More about me or start a project.

Keep reading

·9 min read

Next.js or TanStack Start

Two React full-stack frameworks, one decision. How I actually choose between Next.js and TanStack Start, and the kinds of projects where each one wins.