I'm trying to make sense of an iOS native module whose code is generated by djinni.
According to the React Native doc, you must include the RCT_EXPORT_MODULE()
macro in your code. This working sample does not.
Later in the documentation it is said that the exception is Swift, where there is no macro like that.
Unless I'm wrong, this is not the case.
I'm trying to replicate the use of djinni generated code in my own project but when I run it, it fails because React Native is unable to load my native module:
undefined is not an object (evaluating 'HelloWorld.getHelloWorld')
I'm wondering if I could step through the NativeModule request code:
var HelloWorld = NativeModules.HelloWorld;
To understand what is going on.
Thanks for your help.