TypeScript or nothing
One language from the phone to the database. Why every project I take on is TypeScript end to end, and why I stopped apologising for it.
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.

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.
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.
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.
| Question | Two native codebases | One Expo codebase |
|---|---|---|
| Languages to hire for | Swift and Kotlin, plus the web | TypeScript, everywhere |
| Where a business rule lives | Written twice, can drift | Written once, shared |
| Mac needed to build iOS | Yes | No, EAS builds in the cloud |
| Shipping a small JS fix | Full store release | Over-the-air update |
| Deep platform-specific work | Native by default | Possible, 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.
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 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.
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.
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.
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.
| Change | Over the air? |
|---|---|
| Fix a logic bug in a screen | Yes |
| Adjust copy, colors, layout | Yes |
| Swap an image asset | Yes |
| Add a native module | No, new store build |
| Request a new permission | No, new store build |
| Upgrade to a new Expo SDK | No, 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.
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.
One codebase does not mean one identical destination. The stores have personalities, and pretending otherwise is how launch dates slip.
| Apple App Store | Google Play | |
|---|---|---|
| Review feel | Stricter, more likely to push back | Lighter touch |
| Common friction | Unjustified permissions, login flows, screenshots that oversell | Background work and permission declarations |
| Push notifications route through | APNs | FCM |
| Who decides your launch date | Usually this one | Rarely 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.
I'll keep it honest, because a tool you only hear praised is a tool you'll be surprised by.
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.
Before reaching for the update command, write down what changed. A useful release review looks like this:
| Change | Question to answer first |
|---|---|
| Copy or styling fix | Does it run against the installed native runtime? |
| New native dependency | Which new binary contains the required native code? |
| SDK upgrade | Have both platforms been built and tested against it? |
| Behaviour change | What do the current store policies require? |
| Bad update | Which 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.
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.
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.
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.
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 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.
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.
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.
One language from the phone to the database. Why every project I take on is TypeScript end to end, and why I stopped apologising for it.
Express shaped a generation of Node APIs. Why my new backends start with Hono instead, where it changes how I build, and when Express still wins.
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.