-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directly call C++ from JS #21
Comments
Thanks for sharing, @TimoGlastra that's very cool. I also find the JNI/obj-c bindings a bit redundant, and it would be cool to try and call C++ directly. |
Worst-case scenario one could use the turbo module to hoist an install step that installs pure C++ JSI bindings. At least until codegen supports generating pure C++. |
Can I ask an update on this? What is the right way to wrap a C library in a react native module today? |
I read somewhere on twitter that C++ support was coming to Turbo Modules, no idea if it is out though |
Yes indeed but can't find any tutorial. Thanks anyway |
https://www.youtube.com/channel/UCHxMuqeVlkDgKG5cs99FH2Q, somewhere in there the videos deal with async work and C++ bindings, can't remember which one. But this is off topic to this issue. |
Would it be possible to extend this example with codegen that directly invokes c++ methods from JS? Not sure if that's already possible.
We've created a JSI library in c++ with a minimal obj-c/java boilerplate where methods are implemented in c++ directly (no need to expose it in obj-c/java) but it isn't set up to work with codegen yet (manual JSI setup).
See here for the library: https://github.com/animo/react-native-bbs-signatures
The text was updated successfully, but these errors were encountered: