You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/the-new-architecture/pillars.md
+22-3Lines changed: 22 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,27 @@ id: pillars
3
3
title: What Compose the New Architecture
4
4
---
5
5
6
-
This section recalls the main pillars from the new-architecture-intro section.
6
+
The New Architecture is composed mainly by two pillars:
7
7
8
-
It contains a pointer to the `Migration` section and it specifies that these pillars work only when the new architecture is enabled. It also points to the prerequisites.
8
+
-[TurboModules](pillars-turbomodules)
9
+
-[Fabric Components](pillars-fabric-components).
9
10
10
-
It describes how the following sections are organized.
11
+
TurboModules are the preferred way to create libraries that leverage some platform specific API. Fabric Components are the preferred way to create reusable UI components, providing a native experience to the users.
12
+
13
+
The main goal of this section is to drive the reader through a step-by-step guide to create their first TurboModule or Fabric Component.
14
+
15
+
The next sections contain an high-level overview of the pillars, together with the steps to create them. To create one of these pillars, the steps are:
16
+
17
+
1. Define a JavaScript specification using Flow or TypeScript.
18
+
1. Configure the dependencies management system to generate code from the provided spec.
19
+
1. Implement the Native code.
20
+
1. Integrate the code in the app.
21
+
22
+
Finally, we dive a little deeper into the [CodeGen](pillars-codegen) process that is required to create all the C++ types and files used by our components, including some useful steps to work comfortably while developing the component.
23
+
24
+
:::caution
25
+
To integrate a TurboModule or a Fabric Component in an app, the app has to run with the New Architecture enabled.
26
+
27
+
To create a new app adopting the New Architecture, refer to the [Using the App Template](use-app-template) section.
28
+
To migrate an existing app to the New Architecture, refer to the [Migration](/docs/new-architecture-intro) guide.
0 commit comments