The New Architecture is composed mainly by two pillars:
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.
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.
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:
- Configure the dependencies management system to generate code from the provided spec.
- Implement the Native code.
- Integrate the code in the app.
Finally, we dive a little deeper into the 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.