迁移到新架构
注意
这个文档仍然是实验性的,随着我们的迭代,细节会有变化。欢迎在工作小组内的讨论中分享你的反馈。
此外,它还包含几个手动步骤。请注意新架构尚未稳定下来,最终的开发者体验会继续迭代改善。我们正在努力开发工具、模板和库,以帮助你在新架构上快速入门,而不需要经历整个设置过程。
Getting Started with the New Architecture
This migration guide is designed for React Native library authors and application developers. It outlines the steps you need to follow to roll out the new Architecture, composed by the new NativeModule system (TurboModule) and the new Renderer (Fabric) to your Android and iOS libraries and apps.
Table of Contents
The guide is divided into five sections:
- Supporting the New Architecture in your Library
- Prerequisites for Supporting the New Architecture in JavaScript
- Enabling the New Architecture in your Library
- Supporting the New Architecture in your App
- Prerequisites for Supporting the New Architecture in your App
- Enabling the New NativeModule System (TurboModule) in your App
- Enabling the New Renderer (Fabric) in your App
- React 18 & React Native
- Troubleshooting
- Appendix