Why Shopify Migrated From React Native
Native mobile development involves creating applications tailored to a specific operating system using dedicated languages and frameworks, such as Swift and SwiftUI for Apple's iOS, or Kotlin and Jetpack Compose for Android. Because these environments are separate, building natively for both platforms requires maintaining two independent client codebases. Frameworks like React Native address this duplication by enabling developers to share application logic and UI components across both operating systems using JavaScript or TypeScript. However, cross-platform development does not eliminate all differences, as platform-specific code, testing, and distinct releases for each OS remain necessary. In 2020, Shopify adopted React Native to address persistent inefficiencies tied to separate native mobile development. Native development required duplicating features across iOS and Android, created developer silos, and introduced difficulties in maintaining feature parity. By transitioning to React Native, Shopify unified mobile feature implementation and reduced cross-team coordination overhead. The shift also enabled the company to leverage internal React and TypeScript skills while recruiting from a broader JavaScript ecosystem. While React Native provided significant cross-platform advantages for Shopify, it came with ongoing maintenance and dependency overhead compared to direct native development on iOS and Android. By 2025, advances in coding agents that combine LLMs with tool execution altered this balance by demonstrating the ability to port implementations between Swift and Kotlin reliably. Consequently, Shopify reconsidered its mobile strategy, finding that AI agents sufficiently lower the cost of maintaining separate native codebases, making code duplication a much smaller concern than it was in 2020.
Read the original ↗Contents
What is Native Mobile Development
Native mobile development involves creating applications tailored to a specific operating system using dedicated languages and frameworks, such as Swift and SwiftUI for Apple's iOS, or Kotlin and Jetpack Compose for Android. Because these environments are separate, building natively for both platforms requires maintaining two independent client codebases. Frameworks like React Native address this duplication by enabling developers to share application logic and UI components across both operating systems using JavaScript or TypeScript. However, cross-platform development does not eliminate all differences, as platform-specific code, testing, and distinct releases for each OS remain necessary.
- Native mobile development requires platform-specific programming languages such as Swift for iOS and Kotlin for Android.
- UI creation relies on dedicated native frameworks like Apple's SwiftUI for iOS and Android's Jetpack Compose.
- Building strictly native apps for both iOS and Android requires maintaining two distinct client codebases.
- React Native enables cross-platform code sharing across iOS and Android using React and JavaScript or TypeScript.
- React Native maps common components directly onto native UI components provided by each operating system.
- Cross-platform development still requires building, testing, and releasing separately for each OS, and may still require platform-specific code.
Why Shopify Went With React Native
In 2020, Shopify adopted React Native to address persistent inefficiencies tied to separate native mobile development. Native development required duplicating features across iOS and Android, created developer silos, and introduced difficulties in maintaining feature parity. By transitioning to React Native, Shopify unified mobile feature implementation and reduced cross-team coordination overhead. The shift also enabled the company to leverage internal React and TypeScript skills while recruiting from a broader JavaScript ecosystem.
- Shopify's engineering team adopted React Native in 2020 to overcome native mobile development challenges.
- Native development previously required implementing every feature twice and prevented developers from sharing work across iOS and Android.
- Maintaining feature parity between platforms was difficult and carried the risk of alienating users on the platform that fell behind.
- Requirement updates, even small text changes, incurred continuous maintenance and coordination costs across native platform teams.
- React Native allowed Shopify to write mobile code once, improve developer mobility across projects, and recruit from the broader TypeScript and JavaScript talent pool.
What Changed in 2025
While React Native provided significant cross-platform advantages for Shopify, it came with ongoing maintenance and dependency overhead compared to direct native development on iOS and Android. By 2025, advances in coding agents that combine LLMs with tool execution altered this balance by demonstrating the ability to port implementations between Swift and Kotlin reliably. Consequently, Shopify reconsidered its mobile strategy, finding that AI agents sufficiently lower the cost of maintaining separate native codebases, making code duplication a much smaller concern than it was in 2020.
- Shopify previously faced notable maintenance overhead and dependency costs while supporting and optimizing React Native.
- Native development offers fewer dependency layers and tighter synergy with platform tooling on iOS and Android.
- In 2025, coding agents demonstrated the ability to use one platform's implementation (e.g., iOS) as a reference to generate equivalent code for another (e.g., Android).
- Shopify prototyped rebuilding core application features using Swift and Kotlin with the assistance of coding agents.
- Although native development still requires maintaining two separate codebases, Shopify found coding agents significantly reduce the effort required, diminishing historical duplication concerns.
Shopify’s Migration Approach
Shopify evaluated both brownfield and greenfield migration strategies to transition its mobile applications to native code. While brownfield migration involves gradual replacement alongside legacy code, Shopify found that building fresh native implementations was faster after testing prototypes. The existing React Native codebase served as an effective functional reference for the new native builds. Consequently, Shopify adopted the greenfield approach, first launching the customer-facing Shop app before migrating the larger, merchant-facing Shopify app.
- A brownfield migration replaces parts of an application gradually to lower risk, but takes longer and requires managing integration between old and new systems.
- A greenfield migration involves building a completely fresh implementation with architectural freedom, but requires a nearly complete replacement before deprecating the old product.
- Shopify previously used brownfield migration for some large applications, but found that modern prototyping showed a fresh native implementation would be faster.
- The existing React Native application served as a reference point for defining how the native implementation should behave.
- Shopify selected the greenfield approach, first deploying the Shop app for shoppers before migrating the merchant-facing Shopify app.
- The merchant Shopify app is large, featuring over 300 screens, widgets, and an Apple Watch application.
How Shopify Ran the Migration
Shopify's engineering team found that using AI models to rebuild large features in a single pass yielded mediocre, hard-to-maintain code that overwhelmed code reviewers. In response, Shopify built Helix, a tool that decomposes migration tasks into small, sequentially ordered pieces. Each migration segment must pass four types of checks—behavioral testing, visual UI review, adversarial code review, and final developer review—before serving as the foundation for subsequent steps. This phased workflow ensures continuous feedback while individual changes remain small and manageable.
- Asking an AI model to migrate a large feature all at once produced mediocre and difficult-to-maintain code.
- Shopify developed Helix to decompose screen migrations into small, reviewable steps scheduled in optimal order.
- Migration pieces must pass reviews before they can serve as the foundation for the next checkpoint.
- Validation relies on four check types: behavioral tests, visual comparison with reference apps, two-reviewer adversarial code reviews, and follow-up developer reviews.
- The incremental workflow provides continuous feedback to developers while code changes remain small.
The Agent Feedback Loop
Shopify implements an architectural philosophy that separates application business logic from the user interface, allowing logic to run headlessly. Exposing application state and actions through a CLI enables agents to navigate, perform actions, and inspect states directly. This strategy avoids the complexity of interpreting visual screenshots or locating UI elements, substantially accelerating behavioral testing.
- Shopify's core architectural principle separates business logic from the user interface.
- Decoupled business logic allows applications to execute headlessly.
- Exposing state and actions via a CLI enables agents to navigate and act without relying on visual UI components.
- Headless agent interaction avoids screenshot analysis and significantly speeds up behavioral checks.
The Migration Results
Shopify completed the migration of its Shop app from React Native to native applications across iOS and Android in 12 weeks. The native rewrite led to substantial performance improvements, including reduced startup times on both platforms, fewer crashes, and a smaller Android binary size. Key elements contributing to this success were small checkpoint-based validation, direct use of platform features, and a fast feedback loop to verify code generated by AI agents.
- The Shop app was successfully rewritten and deployed to app stores as a native app in 12 weeks.
- iOS startup time decreased from 3200 ms with React Native to roughly 2400 ms on native.
- Android startup time was cut in half, dropping from approximately 4400 ms to 2200 ms.
- Android app size dropped significantly from 293 MB down to 184 MB.
- Crash-free sessions increased following the native migration.
- Fast feedback loops to validate code generated by AI agents are critical for conducting safe, large-scale migrations.