Home

Awesome

React Native New Architecture Library Samples

This repo contains several branches that will help you understand how to setup your libraries for the React Native New Architecture. This should considered as a support material of the official migration guide.

Here you will find runs of the migration guide on empty projects. Every commit is documented and allows to follow over on every step.

Please find a list of the branches below, with more information on which kind of setup they're addressing.

Branches

Branch NameDescriptionAndroidiOS
feat/back-turbomoduleThis branch contains the step-by-step process to create a simple TurboModule which can be used in both the old and the new architecture
feat/back-fabric-compThis branch contains the step-by-step process to create a simple Fabric Component which can be used in both the old and the new architecture
feat/back-turbomodule-070This branch contains the step-by-step process to create a simple TurboModule which can be used in both the old and the New Architecture, targeting React Native 0.70
feat/back-fabric-component-070This branch contains the step-by-step process to create a simple Fabric Component which can be used in both the old and the New Architecture, targeting React Native 0.70
feat/component-with-stateThis branch contains a step-by-step guide to create a Fabric Component in TypeScript with Custom Native State for the New Architecture, targeting a nightly of React Native 0.71
feat/turbomodule-swiftA step-by-step guide to create a TM with the logic written in Swift, based on RN 0.71N/A
feat/swift-event-emitterA step-by-step guide to create a TM in Swift that leverage the Event Emitters, based on RN 0.71N/A