Skip to content

Commit

Permalink
Do not import +private for bridgeless
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Mar 1, 2024
1 parent ca05aed commit 7d71c35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ios/OPSQLite.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#import "OPSQLite.h"
#import <React/RCTBridge+Private.h>
#if RCT_NEW_ARCH_ENABLED
//#import <React/RCTBridge+Private.h>
#endif
#import <React/RCTUtils.h>
#import <ReactCommon/RCTTurboModule.h>
#import <jsi/jsi.h>
Expand Down Expand Up @@ -36,6 +38,7 @@ - (NSDictionary *)getConstants {
return [self constantsToExport];
}


RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) {
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)_bridge;
if (cxxBridge == nil) {
Expand All @@ -48,6 +51,7 @@ - (NSDictionary *)getConstants {
if (jsiRuntime == nil) {
return @false;
}

auto &runtime = *jsiRuntime;
auto callInvoker = _bridge.jsCallInvoker;

Expand Down Expand Up @@ -80,6 +84,7 @@ - (NSDictionary *)getConstants {
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
(const facebook::react::ObjCTurboModule::InitParams &)params
{
params.instance.
return std::make_shared<facebook::react::NativeOPSQLiteSpecJSI>(params);
}
#endif
Expand Down

0 comments on commit 7d71c35

Please sign in to comment.