To give a conclusion to this subject treated in Part1 and Part2, I want to go back to how native module work and how to communicate between native modules and ReactNative modules.
First, let’s talk about the .m file that enables to link native to JS thru runtime. The code was this :
#import <React/RCTBridgeModule.h> @interface RCT_EXTERN_MODULE(MyNativeModule, NSObject) RCT_EXTERN_METHOD(triggerJSRequest) @end
Continue reading “ReactNative Native Modules in Swift – Part 3 (details, conclusion, …)”