From 7d71c35f602a5a91c608deae8a5e50df8a5b1ec1 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Fri, 1 Mar 2024 10:28:29 +0100 Subject: [PATCH] Do not import +private for bridgeless --- ios/OPSQLite.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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