r/reactnative • • 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

14 comments sorted by

View all comments

Show parent comment

1

u/vaquishaProdigy Oct 09 '26

You sure? They have some abstraction too

2

u/kokerali Oct 09 '26

Yes, they still have abstraction. Owning a native implementation and removing React Native's interface layer are different goals. Turbo Modules use a typed spec and Codegen-generated native interfaces; even the pure C++ route still uses specs and Codegen. C++ isn't an abstraction-free escape hatch.

If you want to replace a third-party wrapper around a platform API, I'd start with one method from the native module guide, then trace the call from JavaScript through the generated interface into your implementation and the platform API. That gives you a concrete boundary to understand rather than a whole language to master first.

If instead you need the same platform-independent algorithm on both Android and iOS, the C++ route is more relevant. For that first module, I'd prioritize object lifetime/RAII, ownership, references versus copies, and compiling/linking a small library. What specific dependency or native feature are you trying to replace? That would make the learning path much less vague.

1

u/Substantial-Swan7065 Oct 09 '26

Oh you right. I was thinking about something else.

It’s still abstraction tho