Shopify日前宣布将其移动应用从React Native框架迁回原生开发语言Swift和Kotlin1。这一决策扭转了该公司2020年采纳React Native的策略,当时Shopify希望通过跨平台框架减少重复开发工作、实现代码共享并降低平台维护成本1。
转变的核心驱动力是大语言模型技术的进步1。Shopify自2021年起就已开始使用LLM构建软件,到2025年底,这些工具已能够在iOS版本基础上直接用Android构建功能,反之亦然1。这使得原生开发相比框架抽象层的优势——更接近平台能力、更少框架层级——相对凸显,同时用AI维护两个平台的成本不再成为主要障碍1。
Shop应用已完成迁移,在12周内从概念验证阶段重建完成并上线1。Shopify应用也在进行迁移中,该应用包含300多个屏幕、主屏和锁屏小部件、Apple Watch应用、复杂功能和Siri快捷方式等1。所有迁移必须保证或超过现有应用的性能、稳定性、可访问性和产品质量1。为防止质量下滑,Shopify开发了Helix系统,通过检查点式的逐步迭代方式进行代码审查1。
尽管战略调整,Shopify仍承诺继续维护部分开源库,将继续赞助React Native Skia至2026年底,继续修复FlashList关键问题,但计划归档Restyle库1。
Shopify has announced a strategic shift away from React Native, migrating its mobile applications back to native development using Swift and Kotlin 1. The decision marks a significant reversal from the company's 2020 commitment to React Native, which was adopted to reduce code duplication and streamline cross-platform development 1.
The migration became feasible due to advances in large language model technology, which have substantially lowered the cost of maintaining separate native codebases 1. Shopify began leveraging LLMs for software development in 2021, predating the public release of ChatGPT by approximately a year 1. By the end of 2025, these models have matured to the point where developers can build features on Android based on existing iOS implementations, or vice versa 1. The company developed the Helix system, employing checkpoint-based iterative approaches to prevent low-quality code during the migration process 1.
The Shop application has already completed its transition to native code, with the rebuild accomplished within twelve weeks from initial proof of concept to production launch 1. The Shopify application, which encompasses over 300 screens alongside home screen and lock screen widgets, Apple Watch applications, complex features, and Siri shortcuts, is currently undergoing migration 1. All transitions are subject to the requirement of maintaining or exceeding the existing applications' performance, stability, accessibility, and product quality standards 1.
Shopify has committed to continued maintenance of select open-source libraries, pledging to sponsor React Native Skia through the end of 2026 and to address critical issues in FlashList, while archiving the Restyle library 1.
评论
还没有评论,欢迎留下第一条。