Migrating Shop app from React Native to native
Shopify rebuilt the Shop app from React Native into native Swift/SwiftUI and Kotlin/Jetpack Compose in 12 weeks, with coding agents porting features using the existing React Native app as a reference. Native builds cut cold start by 23% on iOS and 50% on Android, raised session stability from 99.5%+ to 99.95%+, shrank the Android app by 109 MB, reduced Android release build time by about 75%, and reached 120 FPS scrolling on Pixel. The team built a Pi agent extension with subagents for source analysis, planning, implementation and parity review, with plan approval tied to a content hash. They also built Tardis, a tool that exposes live app events, logs and state to agents and compares analytics payloads between the old and new apps. Native expertise, linting, tests and code review were still needed to catch duplication, architectural drift and performance problems in generated code.
Related posts
- Native is now the future of mobile at Shopify
Shopify Engineering easyNoviceShopify is moving its mobile apps from React Native back to native Swift and Kotlin because coding agents have cut the cost of building and keeping features in parity across two platforms, while native still gives closer access to platform capabilities and first-party tooling. The apps are being rebuilt greenfield rather than migrated gradually. The Shop app went from proof of concept to a published native app in 12 weeks, and the 300+ screen Shopify app is in progress. To avoid unmaintainable one-shot LLM output, a system called Helix splits each screen into small checkpoints, and each one must pass tests, visual comparison, two adversarial AI reviewers and human approval. Business logic is being decoupled from the UI so it runs headlessly behind a CLI, letting agents iterate in milliseconds instead of waiting minutes on simulators. Shopify's open-source libraries are also changing hands: Skia moves to a fork maintained by William Candillon, FlashList is seeking a new steward, and Restyle is being archived.
- How we rebuilt the Shopify app in 12 weeks
Shopify Engineering mediumAdeptThirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code. The key work was building a system around the agents: a shared Reflex architecture for iOS and Android that lets ViewModels run headless from a CLI in milliseconds, CI checks that fail on cross-platform drift, and Helix verifying small checkpoints against the legacy app, which served as the spec instead of written documents. As code generation got faster, the bottlenecks moved to laptops, code review, merging and coordination. Shopify answered with remote dev environments, agent-first adversarial review on small dual-platform PRs, a daily loop that turns review comments into rules, agent-driven merge queues, and pod ownership by product area. Launch time dropped about 50% on Android and 14% on iOS, and the Android binary shrank by 40%.
- Five years of React Native at Shopify
Shopify Engineering easyNoviceAfter five years, Shopify has migrated all its mobile apps to React Native, with each team choosing its own migration timing, and reports sub-500ms P75 screen loads, over 99.9% crash-free sessions, and an end to iOS/Android feature-parity work. Hot reloading and TypeScript let engineers move between web and mobile, but native developers and native code remain essential for hardware features, widgets, watch apps and long-running background sync such as Point of Sale offline data. The downsides are flaky debugging, labor-intensive framework upgrades (handled by a rotating group) and heavier reliance on third-party libraries, mitigated with Dependabot and code scanning. Shopify is now extracting shared libraries for identity, monitoring and performance measurement after initially trading consistency for migration speed.
- Migrating our Largest Mobile App to React Native
Shopify Engineering mediumAdeptShopify is moving its largest native app, Shopify Mobile (300 screens per platform), to React Native through "Iterative Porting" rather than a rewrite. All new features are built in RN while existing screens are ported in parallel. Ports are prioritized with RICE scoring, shipped behind feature flags and monitored for two weeks before the native code is deleted. The team started with the four root screens, which took about four months and needed infrastructure along the way: "Native Routes" so RN can navigate to native screens, deeplinks that open as modals on iOS to avoid mixed RN/native navigation stacks, and safe-area handling inside cells. The porting also exposed and removed business-logic differences between the iOS and Android versions.
- Management of Native Code and React Native at Shopify
Shopify Engineering mediumAdeptShopify's Point of Sale team kept complex UI such as a draggable, reorderable grid of hundreds of buttons in React Native, fixing performance with fewer re-renders, lazy rendering, memoization and Reanimated 2. Background offline sync jobs were a different story: they froze the app because work in single-threaded JavaScript plus bridge traffic blocked interaction. The team moved that sync engine to a Kotlin Multiplatform library using SQLDelight, Apollo and coroutines, reaching about 95% shared code and cutting initial sync for a medium store from 30+ seconds to 2-3 seconds. The post recommends packaging KMM as a separate library with sandbox apps, sketches the Gradle and Xcode build setup, and notes the steeper learning curve for Swift developers.