#import #import #import #import #import "turboModuleUtility.h" #import "AriesAskar.h" using namespace facebook; @implementation AriesAskar RCT_EXPORT_MODULE() RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) { RCTBridge* bridge = [RCTBridge currentBridge]; RCTCxxBridge* cxxBridge = (RCTCxxBridge*)bridge; if (cxxBridge == nil) { return @false; } jsi::Runtime* jsiRuntime = (jsi::Runtime*) cxxBridge.runtime; if (jsiRuntime == nil) { return @false; } auto callInvoker = bridge.jsCallInvoker; ariesAskarTurboModuleUtility::registerTurboModule(*jsiRuntime, callInvoker); return @true; } @end