Skip to content

Commit

Permalink
feat: remove usage of currentBridge (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLewicki authored Oct 4, 2024
1 parent 613583d commit e51ea89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/ios/QuickSQLite.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ @implementation QuickSQLite

RCT_EXPORT_MODULE(QuickSQLite)

@synthesize bridge = _bridge;

RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) {
NSLog(@"Installing QuickSQLite module...");

RCTBridge *bridge = [RCTBridge currentBridge];
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)bridge;
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)self.bridge;
if (cxxBridge == nil) {
return @false;
}
Expand All @@ -29,7 +29,7 @@ @implementation QuickSQLite
return @false;
}
auto &runtime = *jsiRuntime;
auto callInvoker = bridge.jsCallInvoker;
auto callInvoker = cxxBridge.jsCallInvoker;

// Get appGroupID value from Info.plist using key "AppGroup"
NSString *appGroupID = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"ReactNativeQuickSQLite_AppGroup"];
Expand Down

0 comments on commit e51ea89

Please sign in to comment.