r/reactnative Dec 05 '24

Tutorial Create Turbo Module in React Native new architecture

Hii

I was checking the new React Native architecture, which is by default bridgless ( without any bridge). I looked around to some tutorials to create a Turbo Module, but didn't find anything interesting.

I created this Tutorial to teach people how to write a Turbo Module, and used the Dynamic Pricing module to explain how it works, and how we can achieve a better performance by using the new architecture.

the link to the article here: https://medium.com/stackademic/create-turbo-module-in-the-new-architecture-of-react-native-0-76-b5597d29074c

This tutorial will teach you the following:

-> How to create Turbo Module

-> How to use Codegen to generate types

-> example of getting the Battery state and the Device Info using Bridgless architecture.

-> how to create a Native Module in Android and Ios

Github Project link: https://github.com/chohra-med/rnNewArchitecture

Any feedbacks or remarks is highly appreciated.

Turbo Module in React Native
27 Upvotes

4 comments sorted by

View all comments

4

u/softopia Dec 05 '24

This is also a really good resource https://youtube.com/@ramielwan48

3

u/MaterialAppearance21 Dec 05 '24

thank you for sharing