diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index 28a218b07..6e839ed05 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -868,6 +868,11 @@ static id<RCTJavaScriptExecutor> _latestJSExecutor; return _batchedBridge.modules; } +- (RCTEventDispatcher *)eventDispatcher +{ + return _eventDispatcher ?: _batchedBridge.eventDispatcher; +} + #define RCT_BRIDGE_WARN(...) \ - (void)__VA_ARGS__ \ { \