Shopify Mustafa Ali Nov 5, 2024

Shopify completes React Native migration after a Decade

Article Summary

Shopify just completed a massive React Native migration of a decade-old app—and the results are stunning.

Mustafa Ali from Shopify shares the complete story of migrating their flagship mobile app to React Native. The thread covers performance wins, code reduction, open source contributions, and hard-earned lessons from transforming a legacy codebase.

Key Takeaways

Critical Insight

Shopify achieved dramatic performance improvements and code simplification while proving React Native works at scale for complex enterprise apps.

The three key lessons they learned might surprise you, especially their take on when NOT to use React Native.

About This Article

Problem

Shopify's mobile app had been around for a decade but was plagued by code duplication. Only 5% of code was shared between iOS and Android, which made maintenance harder and kept the two platforms out of sync.

Solution

Mustafa Ali's team moved 586 screens over to React Native. They kept native code where it mattered most, like for widgets, Siri shortcuts, and watch app complications. This pushed code sharing up to 86% across both platforms.

Impact

iOS ratings climbed from 4.4 to 4.8, and Android went from 4.1 to 4.4. The app also landed 5 feature placements from Apple and Google during the migration.