After years of native mobile development, we’ve decided to build all of our new mobile apps using React Native. As I’ll explain, that decision doesn’t come lightly.
Overview
Shopify has transitioned to building all new mobile apps using React Native, a decision driven by the increasing mobile purchase rates and the need for a unified development approach. This article outlines the rationale behind this shift, the benefits of React Native, and the company's experiences with it.
What You'll Learn
How to leverage React Native for cross-platform mobile app development
Why Shopify decided to adopt React Native for new mobile apps
When to choose native development over React Native
How to achieve high code sharing between iOS and Android apps
Prerequisites & Requirements
- Familiarity with mobile app development concepts
- Basic understanding of JavaScript and React(optional)
Key Questions Answered
What are the main reasons Shopify switched to React Native for mobile apps?
When should Shopify not use React Native for mobile app development?
How does React Native work for building mobile apps?
What were the productivity gains observed by Shopify teams using React Native?
Key Statistics & Figures
Technologies & Tools
Some links below are affiliate links. We may earn a commission if you make a purchase.
Key Actionable Insights
1Adopting React Native can significantly enhance development productivity for mobile applications.Shopify's experience shows that teams reported up to twice the productivity when using React Native compared to native development, making it a compelling choice for new projects.
2Consider the performance requirements of your app before choosing React Native.Shopify identified specific scenarios where React Native may not be suitable, such as apps requiring high performance or those running on older hardware, which can guide your decision-making process.
3Utilizing a single codebase for both iOS and Android can lead to significant resource savings.Shopify's teams achieved up to 99% code sharing between platforms, which not only reduces development time but also simplifies maintenance and updates.
4Engage in thorough testing on various hardware configurations to set realistic performance expectations.Shopify's testing on low-power Android configurations allowed them to adjust their performance benchmarks, which is crucial for ensuring a smooth user experience across devices.