Skip to content

Commit

Permalink
fix(πŸŒ‰): remove currentBridge (#2548)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoLewicki authored Aug 1, 2024
1 parent 56a3894 commit aadd424
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package/ios/RNSkiaModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ @implementation RNSkiaModule {
}

RCT_EXPORT_MODULE()
@synthesize bridge = _bridge;

#pragma Accessors

Expand All @@ -34,11 +35,12 @@ - (void)invalidate {
// Already initialized, ignore call.
return @true;
}
RCTBridge *bridge = [RCTBridge currentBridge];
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)self.bridge;
if (!jsInvoker) {
jsInvoker = bridge.jsCallInvoker;
jsInvoker = cxxBridge.jsCallInvoker;
}
skiaManager = [[SkiaManager alloc] initWithBridge:bridge jsInvoker:jsInvoker];
skiaManager = [[SkiaManager alloc] initWithBridge:cxxBridge
jsInvoker:jsInvoker];
return @true;
}

Expand Down

0 comments on commit aadd424

Please sign in to comment.