We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50b6b16 + d1c70b4 commit f0d2306Copy full SHA for f0d2306
1 file changed
ios/OPS2.mm
@@ -6,23 +6,21 @@
6
#import <jsi/jsi.h>
7
8
@implementation OPS2
9
+@synthesize bridge = _bridge;
10
RCT_EXPORT_MODULE()
11
12
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) {
- RCTBridge *bridge = [RCTBridge currentBridge];
13
- RCTCxxBridge *cxxBridge = (RCTCxxBridge *)bridge;
+ RCTCxxBridge *cxxBridge = (RCTCxxBridge *)_bridge;
14
if (cxxBridge == nil) {
15
return @false;
16
}
17
18
- using namespace facebook;
19
-
20
- auto jsiRuntime = (jsi::Runtime *)cxxBridge.runtime;
+ auto jsiRuntime = (facebook::jsi::Runtime *)cxxBridge.runtime;
21
if (jsiRuntime == nil) {
22
23
24
auto &runtime = *jsiRuntime;
25
- auto callInvoker = bridge.jsCallInvoker;
+ auto callInvoker = _bridge.jsCallInvoker;
26
27
ops2::install(runtime, callInvoker);
28
0 commit comments