迁移到新架构
本文档仍为 experimental,详细信息可能会随着我们的迭代而发生变化。 欢迎在此页面分享你对 工作组内部讨论 的反馈。
英This documentation is still experimental and details are subject to changes as we iterate. Feel free to share your feedback on the discussion inside the working group for this page.
而且,它还包含几个 手动步骤。 请注意,一旦新架构稳定,这将不代表最终的开发者体验。 我们正在开发工具、模板和库,以帮助你快速开始使用新架构,而无需完成整个设置。
英Moreover, it contains several manual steps. Please note that this won't be representative of the final developer experience once the New Architecture is stable. We're working on tools, templates and libraries to help you get started fast on the New Architecture, without having to go through the whole setup.
开始使用新架构
本迁移指南专为 React Native 库作者 和 应用开发者 设计。 它概述了推出新架构所需遵循的步骤,该架构由 新的 NativeModule 系统(Turbo Module)和新的 Renderer(Fabric) 到 安卓 和 iOS 库和应用组成。
英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 of the new NativeModule system (Turbo Module) and the new Renderer (Fabric) to your Android and iOS libraries and apps.
目录
该指南分为五个部分:
英The guide is divided into five sections:
- 支持库的新架构
- 支持 JavaScript 新架构的先决条件
- 在你的库中启用新架构
- 支持应用中的新架构
- React 18 和 React Native
- 故障排除
- 附录