Why We're Doubling Down on One Codebase: Zalando's Mobile Apps on React Native
Zalando is doubling down on React Native and one codebase for Android and iOS, and later the web. We cover the challenges of the migration, including getting migrated screens to match the native app's performance, and what it cost to migrate without stopping feature work.
For most of Zalando's history, a customer-facing feature was built three times: once for the web, once for iOS, and once for Android. Each codebase had its own release cadence and its own small unintentional behavioral differences. Every new feature, A/B test, and bug fix was designed and implemented three times.
Over the past year and a half we've been migrating the Zalando mobile apps to React Native (RN), running on our in-house Rendering Engine, the framework that already renders most of Zalando's web pages. Our previous post covered how we embedded React Native into the existing native apps. In this post we cover the current status and explain why we're doubling down on our one-codebase strategy for the future.
Recently, the rise of AI coding agents challenged this strategy. Agents make writing the same feature for each platform much cheaper, so it's fair to ask whether sharing code still pays off. We looked at this again for our own situation, and our answer is to double down and go further, from one codebase for iOS and Android toward one that also covers the web. The rest of this post explains why, what it takes to make that work in practice, and what challenges we faced along the way.
Where we are¶
- More than 90% of the roughly 100 screens per platform now run on React Native and the Rendering Engine. For these, iOS and Android share one codebase, while the web still has its own.
- We ship JavaScript changes to the apps over the air every 1-2 weeks, to every device running the latest app version, without an App/Play Store release.
- Migrated screens have a crash-free session rate above 99.95%.
- On the new Product Detail Page (PDP), p90 Meaningful Render Time improved by about 10% on iOS and about 36% on Android after a round of profiling and performance optimizations (which often benefited the entire platform).
We migrated screen by screen, behind feature toggles and A/B tests. Each screen was migrated to the shared codebase, enabled for a fraction of traffic, and monitored. We only rolled it out to 100% of customers once it performed in line with business expectations. React Native currently runs inside the existing native apps as an embedded library (the brownfield setup from the previous post), and we're building the standalone React Native app shell that will ultimately replace it.
Why we're staying with React Native¶
The following four reasons are listed in order of importance to us.
Over-the-air updates¶
A React Native app has a native layer with a JavaScript layer on top, and practically everything customers interact with is in the JavaScript. That layer can be replaced without a new app store release, which a fully native app can't do. Speed matters to our business: new features, experiments, and fixes have a larger impact if they reach our customers sooner. We already release our native app every two weeks, but each release then takes another 1-1.5 weeks to reach 80% of our active customer base. Over-the-air (OTA) updates also ship every 1-2 weeks, but customers don't have to do anything to get them. An update downloads in the background and applies the next time the app starts, so most devices on the latest app version run it within a few days. We're working toward shipping them every few days. The section on shipping below explains how OTA works.
A framework our engineers already know¶
The Rendering Engine is the established way to build customer experiences at Zalando and powers about 90% of our web pages. Running it in the apps means that knowledge carries over, and so do the capabilities built into it: backend-driven page composition, data queries, and error handling work the same way, so teams don't rebuild them for each platform. Web and app engineers now work in the same codebase.
Consistent across platforms by design¶
For Zalando, web, Android, and iOS are channels to our customers, and a customer should get the same features and behavior whichever platform they use. The small behavioral differences mentioned at the start of this post came from implementing the same feature more than once. With one implementation, the logic behind a screen is the same on iOS and Android, and it will be on the web once it joins the shared codebase. In our architecture, a screen is built from renderers (self-contained UI building blocks). Each renderer loads its own data and decides what to show, while traits (shared state, like the cart or the wishlist) hold that data and the actions that change it. The same code handles size and color selection, experiment behavior, and error handling on iOS and Android. When a platform should behave differently, that's a deliberate choice.
Tracking is a prominent area where having one codebase brings long-term benefits. We rely on behavioral data to understand how customers use Zalando, across the apps and the web. When each platform implements its own tracking, the events drift: the same interaction can end up slightly different on each platform, and product analysts spend time working around the differences. By building tracking into renderers, we define it once per renderer rather than implementing it separately on every screen. Once this built-in tracking rolls out, each renderer will emit the same lightweight event on iOS and Android, and on the web once it shares the codebase, with richer context added on the server side. One renderer means one event definition, so the data lines up across platforms without anyone keeping it in sync by hand.
One codebase makes agents more effective¶
Agents make writing code cheaper, yet every additional codebase still has to be implemented, reviewed, tested, and kept in sync, and each copy costs tokens and review time. Spec-driven development makes this clearer. One spec resulting in one codebase requires only one implementation to be reviewed. The same spec resulting in three different codebases requires three implementations to be reviewed, with three sets of tests, and more chances to drift apart.
The same goes for the context agents work from. Going back to native would mean more than rewriting screens. We'd also build a new architecture for iOS and another for Android, and even if the two ended up similar, each would need its own skills, MCP servers, and documentation. Counting the web, that's three sets of context to maintain, and keeping each one current costs time and tokens. With one codebase and one architecture, we improve that context in one place and every team's agents pick up the change. Separate codebases can share some of it, but once agents write a lot of the code, the copies would drift apart fast. And even if agents get good enough to keep three architectures aligned, we'd still have three platforms that work differently underneath, which brings back the drift that one codebase removes.
Web matters here as well. It's a first class surface for Zalando and already runs on the Rendering Engine, so the next step is one codebase across web, Android, and iOS, with responsive layouts that also adapt to tablets, landscape phones, and foldables. We aren't there yet, but because all three platforms now share one framework, the gap between our web and app codebases keeps getting smaller, and the code that runs in our apps today can be made to run on the web too.
Native code stays in the picture. App launch, navigation, build and release, and anything close to the device still need experienced native engineers, and we use native wherever it's the better tool.
How it works: one engine, several adapters¶
All four reasons depend on the same renderers running on every platform, and the framework work below is how we achieve it.
The Rendering Engine composes pages from three building blocks. Entities describe what to render, for example "a product, shown as a gallery." Rules map each entity to a renderer, a self-contained React component that declares its own data queries and owns its UI. Traits hold shared state such as the cart or the wishlist. The backend decides what a page contains, and the Rendering Engine decides how to render it. A renderer looks like this:
// product_page.tsx
screen()
.withQueries((entity) => ({
product: { query: PRODUCT, id: entity.id },
}))
.withProcessDependencies((data) => ({
action: "render",
data: { name: data.product.name },
tiles: { children: data.relevantEntities }, // child entities sent by the backend
}))
.withRender(({ data, tiles }) => (
<ProductPage name={data.name}>{tiles.children}</ProductPage>
));
We've written about this model before, in from fragments to renderers and its road to Concurrent React. Because React Native runs React on the device, renderers like this one could run in the apps with very few changes, and a short feasibility spike with a pilot screen on real data confirmed it (before we started migrating the rest).
The framework itself needed more work. The Rendering Engine started as a web framework: its Node.js server handled server-side rendering, streaming, and hydration, and the same package contained the web tooling and services such as analytics, feature flags, and logging. Apps removed most of those assumptions. React Native has no DOM and no browser APIs, the framework must support long-lived app sessions, and the app owns navigation.
We added app support pragmatically at first, on top of the existing web foundation. Over time the web and app code paths became tangled, and a change made for one platform could break others. The fix we're working on is to keep only the platform-independent part in the Rendering Engine core, which picks a renderer for each entity, renders it with its data, and builds the screen.
The core also keeps the implementation behind traits. A trait declares its state and the actions that change it, and a renderer declares which traits it reads and which ones it changes. The core connects the two. It applies each update as a new, immutable version of the state, re-renders only the renderers that use the part that changed, and pauses, resumes, or releases a renderer's subscriptions as screens come and go. None of this depends on a browser or a specific device, so the cart behaves the same on every platform. For the same reason, some code that used to be platform-specific is turning into traits.
Everything platform-specific now moves into adapters, which handle the environment each platform runs in. On the web, one adapter renders pages on our server and streams them to the browser, and another runs apps that render entirely in the browser. In the mobile apps, the React Native adapter handles the native bridge, deep links, and the app lifecycle. Tracking, experiments, and observability become plugins.

From the core's point of view, React Native is one more adapter in addition to the web, and the goal is that renderers don't need to (and shouldn't) know which one they run on. The UI inside a renderer comes from the Zalando Design System (ZDS). In the mobile apps, ZDS is a cross-platform component library with accessibility and theming built in, and it relies on the same design tokens as our web and native libraries. Its components ship inside the app's JavaScript, so a fix to one of them reaches customers with the next over the air update. Building the app components so they can also render on the web is what makes one codebase across all three platforms realistic. An internal ecommerce showcase already demonstrates that target state: it runs one codebase on several hosts (Next.js, Vite, Expo, and our Node server) and doubles as a suite of cross-platform contract tests that catch breaking changes before they reach an app.
Shipping in days instead of weeks¶
Before OTA, a change took about three weeks to reach most customers: release branch cut-off, App/Play Store review, then a phased rollout over 7 days on iOS and typically 4 on Android. The longer the gap between release trains, the more changes each train contains and the more can go wrong once we start rolling out.
We built OTA in-house and host its infrastructure ourselves, which keeps delivery and its cost under our control. A CI/CD job bundles the JavaScript, release metadata goes to DynamoDB and assets to S3 behind a CDN, and devices ask a "check for updates" API what to fetch, based on operating system, release channel, and native app version.
Most of the cost is data transfer. Sending the full bundle to every device on each release would add up to thousands of dollars in CDN traffic. Instead, we ship only the difference between bundles. A patch for a small change is a tiny fraction of the bundle's size, and we generate it server-side with our own bsdiff-based tooling, with bindings for Kotlin, Swift, React Native, and Node.js. Each release lists the full bundle plus patches from previous bundles, so a device downloads only the delta.
On the device, a state machine in the native layer decides what to download and when an update is safe to use:

Every response is signed, and the device checks the signature before applying a bundle. Rollouts go through our configuration platform in increasing percentages per channel and native version, so we start with a small share of customers and can stop at any point. If a new bundle fails to load, the native layer falls back to the last bundle that worked. A screen ships over the air only once it's covered by automated tests, and that condition is what lets us move quickly without breaking things for customers.
OTA now reaches every device on the latest app version, with a release every 1-2 weeks. That is well ahead of the old release train, though still short of the 3 days we're aiming for. Each native release has its own stream of updates, so devices on an older version can still receive updates built for it. We'll describe the system in more depth in a follow-up post.
Holding up against the native app¶
One codebase and fast adoption only help if migrated screens are at least as good as the native ones they replace. That's why every screen ships behind an A/B test against its native version, and the Product Detail Page (PDP) was where this bar was most challenging. The native PDP had been tuned over years by several teams, and when monitoring and customer feedback flagged the migrated one as slow, we had a demanding baseline to match.
We started with three metrics: Meaningful Render Time, memory used per screen (from a snapshot on open and on close), and frames per second during scrolling. Meaningful Render Time begins measurement from the moment the native app starts loading the React Native screen, and ends when a chosen component on that screen first renders (typically one that fills a large part of the screen). On the PDP, that's the product gallery. Then we compared the new PDP with the native one through multiple A/B tests and investigated wherever it fell behind, using a JavaScript profiler, a native profiler, and the React component profiler. That surfaced a range of issues, and the work to fix them fell into three groups:
Issues hidden in shared infrastructure. Two of the biggest issues weren't in the PDP's own code. Starting an OpenTelemetry span crossed the native bridge synchronously on every call, blocking the JavaScript thread, and a single PDP starts about a hundred spans. We've written about our OpenTelemetry setup before, and this cost was hiding inside it. Removing those repeated synchronous bridge calls reduced the per-screen overhead from about 6 ms to 0.5 ms on Android, and from about 3 ms to 0.04 ms on iOS. Tracking events and data queries were also sent uncompressed, and on some screens the tracking payload was larger than everything else combined. Because both of these lived in shared platform code, fixing them benefited every screen.
Places where the new screen behaved differently from the old one. Other issues only showed up when compared side-by-side with the native implementation. On the migrated PDP, changing a product's color triggered a full navigation to a new PDP, while the native screen had updated the existing screen in place. Out-of-memory crashes spiked as the new PDP rolled out, and we've since added a garbage collector to the Rendering Engine that releases a screen's state and cached data as soon as the screen leaves the navigation stack. None of these issues stood out on its own; they were visible only when comparing against an existing screen that had been refined for years.
Framework work that pays off on every screen. Profiling also pointed at the Rendering Engine itself. Subscriptions in the trait store, which holds shared state such as the cart, were found with a linear scan. Making that lookup constant-time made pausing and resuming subscriptions on the PDP about 35x faster, and cut the product listing screen's trait-store operations from about 9 ms to 0.05 ms. Additionally, renderers now re-resolve their children only when their inputs change, child renderers join their parent's data request instead of sending their own, and handling a navigation event no longer gets slower as more screens listen for it. Similarly, loading only the active locale's translations, instead of all of them, reduced JavaScript startup time by 30 to 40% on Android.
After fixing these and others, p90 Meaningful Render Time on the PDP improved by about 10% on iOS and about 36% on Android compared to where we started.
None of these issues was specific to our React Native migration efforts. What we took from it is that performance should be handled by the platform, so that an engineer building a new screen gets guardrails without having to become a profiling expert. Some of that is in place. Every screen now reports frame rate, memory, and JavaScript thread lag automatically. Render-performance regression tests built on Reassure comment on a pull request when a change makes rendering noticeably slower, and our AI code review flags framework code that scales linearly or worse. Still upcoming are per-screen performance budgets and profiling in CI, closer to what Lighthouse and Core Web Vitals enable on the web.
What were the challenges?¶
All of this came with costs, and most of them stem from one choice: migrating without pausing feature work.
Enabling teams to ship features in parallel with the migration required running React Native inside the native apps during the whole migration. For now, our apps still contain two HTTP stacks and two navigation systems, and anything a React Native screen needs from the native side has to cross a bridge. Let's take the wishlist badge as an example: when a customer saves an item on a React Native screen, the native tab bar has to update its counter. Each bridge needs a contract that works in TypeScript, Swift, and Kotlin, and these bridges often took far longer to finalize than first estimated, because edge cases on one side only showed up once both sides were connected. At the same time, we are also aware that every bridge is temporary, since the standalone app shell will later remove it.
The framework carried a similar cost. To get apps working quickly, we built on top of the web foundation instead of restructuring the Rendering Engine first. That got the first screens to customers sooner, but the web and app code paths grew tangled, and changes made for one platform sometimes caused regressions on the other. The core-and-adapters work described above is how we're setting ourselves up for success going forward.
Besides these challenges, we also depend on external projects out of our control. React Native and the libraries underneath our design system release on their own schedules, and ownership of React Native is moving to the React Foundation. Timing matters in practice: after React Native 0.84, Hermes (the React Native JavaScript engine) used about 100 MB more memory on iOS, and we had to wait for a later React Native release that fixed it.
These costs are the price of migrating while the apps kept shipping, and most of them go away once the standalone app shell replaces the brownfield setup.
What's next¶
The next steps all push the same bet further: finishing the standalone app shell so the brownfield glue can be removed, moving toward one codebase across web, Android, and iOS, and rolling out built-in tracking. Alongside that, we want to bring OTA releases down from every 1-2 weeks to every few days.
Thanks to the client platform teams and to every app team that migrated their screens with us!
We're hiring! Do you like working in an ever evolving organization such as Zalando? Consider joining our teams as a Frontend Engineer!



