Skip to content

Zalando doubles down on one codebase with React Native

updated

Zalando's engineering blog has published an update on migrating the company's mobile apps to React Native (RN), running on its in-house Rendering Engine, the framework that already renders most of Zalando's web pages. Previously, customer-facing features were built separately for web, iOS and Android.

Current status

According to the post, more than 90% of the roughly 100 screens per platform now run on React Native and the Rendering Engine, with iOS and Android sharing one codebase while the web still has its own. Migrated screens have a crash-free session rate above 99.95%. Screens were migrated one at a time behind feature toggles and A/B tests. React Native currently runs as an embedded library inside the existing native apps (a brownfield setup), and the team is building a standalone React Native app shell that will ultimately replace it.

Reasons for staying with React Native

The post lists four reasons in order of importance to the team: over-the-air (OTA) updates, a framework engineers already know, consistency across platforms by design, and the view that one codebase makes AI coding agents more effective, since each additional codebase must still be implemented, reviewed, tested and kept in sync. The stated direction is one codebase across web, Android and iOS, which the team says it has not reached yet.

Rendering Engine architecture

Pages are composed from entities, rules that map entities to renderers, and traits that hold shared state such as the cart or wishlist. The post shows a renderer like this:

screen()
  .withQueries((entity) => ({
    product: { query: PRODUCT, id: entity.id },
  }))

The team is working to keep only platform-independent logic in the Rendering Engine core, moving platform-specific code into adapters, with React Native treated as one more adapter alongside the web. Tracking, experiments and observability become plugins. UI comes from the Zalando Design System (ZDS).

In-house OTA

Zalando built and hosts its own OTA system. A CI/CD job bundles the JavaScript, metadata goes to DynamoDB and assets to S3 behind a CDN. To reduce transfer costs, only diffs between bundles are shipped, generated with bsdiff-based tooling. Responses are signed, rollouts are staged by percentage, and the native layer falls back to the last working bundle if a new one fails. OTA updates currently ship every 1-2 weeks, with a target of every few days.

Performance work

On the new Product Detail Page (PDP), p90 Meaningful Render Time improved by about 10% on iOS and about 36% on Android. Fixes included removing synchronous native bridge calls when starting OpenTelemetry spans, compressing tracking and query payloads, adding a garbage collector for screen state, making trait-store subscription lookups constant-time, and loading only the active locale's translations, which cut JavaScript startup time by 30 to 40% on Android. Render-performance regression tests built on Reassure now comment on pull requests; per-screen performance budgets and profiling in CI are still upcoming.

Challenges

The post cites running two HTTP stacks and two navigation systems during the brownfield phase, bridges needing contracts across TypeScript, Swift and Kotlin, tangled web and app code paths, and external dependencies, including a Hermes memory increase of about 100 MB on iOS after React Native 0.84 that required waiting for a later release.

Source: engineering.zalando.com