Why do we need Turbomodules when writing with C++? #356
-
Yesterday I went about creating a new library with bob. I wanted to go C++ and JSI. I selected the new architecture + backwards compat option, then selected C++. What I noticed was that this created a Turbomodule for my library. However, I thought that one of the strengths of using a JSI+JNI module was that it could be alternative to needing to write for either TurboModules vs. Native Modules. So we'd get compat with both old and new architecture out of the box. As such as I'm confused and looking for an answer to this. Should there be three options in the initial CLI prompt?
If I just want a JSI module is there something I can currently select in the CLI to achieve my desired outcome? The core of my library is currently written in plain C so I was hoping to skip any marshaling to Java or Swift entirely and go C-> React Native. I'm concerned that adding the TurboModule layer is just extra baggage. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no pure JNI template because I don't know C/C++ so don't have enough knowledge to write a decent template. Pull requests are welcome. |
Beta Was this translation helpful? Give feedback.
There is no pure JNI template because I don't know C/C++ so don't have enough knowledge to write a decent template. Pull requests are welcome.