We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a3894 commit aadd424Copy full SHA for aadd424
‎package/ios/RNSkiaModule.mm
@@ -9,6 +9,7 @@ @implementation RNSkiaModule {
9
}
10
11
RCT_EXPORT_MODULE()
12
+@synthesize bridge = _bridge;
13
14
#pragma Accessors
15
@@ -34,11 +35,12 @@ - (void)invalidate {
34
35
// Already initialized, ignore call.
36
return @true;
37
- RCTBridge *bridge = [RCTBridge currentBridge];
38
+ RCTCxxBridge *cxxBridge = (RCTCxxBridge *)self.bridge;
39
if (!jsInvoker) {
- jsInvoker = bridge.jsCallInvoker;
40
+ jsInvoker = cxxBridge.jsCallInvoker;
41
- skiaManager = [[SkiaManager alloc] initWithBridge:bridge jsInvoker:jsInvoker];
42
+ skiaManager = [[SkiaManager alloc] initWithBridge:cxxBridge
43
+ jsInvoker:jsInvoker];
44
45
46
0 commit comments