diff --git a/apple/RNGestureHandlerModule.mm b/apple/RNGestureHandlerModule.mm index d36fcf4e3f..9deb831812 100644 --- a/apple/RNGestureHandlerModule.mm +++ b/apple/RNGestureHandlerModule.mm @@ -53,7 +53,6 @@ @implementation RNGestureHandlerModule { #ifdef RCT_NEW_ARCH_ENABLED @synthesize viewRegistry_DEPRECATED = _viewRegistry_DEPRECATED; -@synthesize bridge = _bridge; @synthesize dispatchToJSThread = _dispatchToJSThread; #endif // RCT_NEW_ARCH_ENABLED @@ -133,14 +132,14 @@ - (void)setBridge:(RCTBridge *)bridge RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install) { dispatch_block_t block = ^{ - RCTCxxBridge *cxxBridge = (RCTCxxBridge *)[RCTBridge currentBridge]; + RCTCxxBridge *cxxBridge = (RCTCxxBridge *)self.bridge; auto runtime = (jsi::Runtime *)cxxBridge.runtime; decorateRuntime(*runtime); }; if (_dispatchToJSThread) { _dispatchToJSThread(block); } else { - [[RCTBridge currentBridge] dispatchBlock:block queue:RCTJSThread]; + [self.bridge dispatchBlock:block queue:RCTJSThread]; } return @true;