r/reactnative • u/vaquishaProdigy • Oct 09 '26
Help Turbo Modules
I don't want to depend everytime on third party code, so in order to learn to bulid my own solutions without any abstraction how much C++ do i have to learn? And in what parts/concepts do i have to focus?
1
Upvotes
2
u/rakadoank Oct 11 '26 edited Oct 11 '26
Try to visit exisiting project, such as Reanimated, Safe Area Context, etc, you can follow how do they work.
You can also visit my https://github.com/RakaDoank – I am currently only have one C++ RN Module.
Advanced Guide, but it is super not recommended if you do not know what you are doing., Learn bridgeless which you are not using Turbo Modules for your C++ module. Basically your C++ is just polutting the
globalinstance of JavaScript, similar how does Turbo Modules actually do behind the scene. The difficult part is to get JavaScript Runtime from Kotlin Android, Obj-C iOS, and provide to your C++ code. @op-engineering/op-sqlite is literally bridgeless. Turbo Modules is still bridgless by the way, but Turbo Modules provides a thin bridge for a safety call from-to TypeScript/Flow and C++1
u/Substantial-Swan7065 Oct 09 '26
0 c++. Kotlin and swift
1
u/beepboopnoise Oct 10 '26
Whenever someone says “there is no reason not use RN” I’m reminded of posts like these
2
u/PrimaryFamous6139 Oct 09 '26
You don’t need to master C++ to build Turbo Modules. Start with the basics: types, classes, pointers/references, memory management, and how C++ interacts with JavaScript through JSI. Also learn React Native’s Codegen and the Turbo Module spec. Build one simple native module first, then move to C++ only when you actually need cross-platform native logic
2
u/tr__18 iOS & Android Oct 09 '26
After today's headache, I am feeling the same thing. I should build mine own compenent rather than loading a whole big ass package