diff --git a/ios/OPSQLite.mm b/ios/OPSQLite.mm index 8b4d97be..92da67f3 100644 --- a/ios/OPSQLite.mm +++ b/ios/OPSQLite.mm @@ -1,5 +1,7 @@ #import "OPSQLite.h" -#import +#if RCT_NEW_ARCH_ENABLED +//#import +#endif #import #import #import @@ -36,6 +38,7 @@ - (NSDictionary *)getConstants { return [self constantsToExport]; } + RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) { RCTCxxBridge *cxxBridge = (RCTCxxBridge *)_bridge; if (cxxBridge == nil) { @@ -48,6 +51,7 @@ - (NSDictionary *)getConstants { if (jsiRuntime == nil) { return @false; } + auto &runtime = *jsiRuntime; auto callInvoker = _bridge.jsCallInvoker; @@ -80,6 +84,7 @@ - (NSDictionary *)getConstants { - (std::shared_ptr)getTurboModule: (const facebook::react::ObjCTurboModule::InitParams &)params { + params.instance. return std::make_shared(params); } #endif