Initialize Event Emitter as part of UIManagerModule

Reviewed By: achen1

Differential Revision: D8216184

fbshipit-source-id: 3b188804e2dad2b112f566da49a939eb4338713d
This commit is contained in:
David Vacca
2018-05-30 22:06:40 -07:00
committed by Facebook Github Bot
parent 0f10e03dd8
commit 6e359c4589
22 changed files with 43 additions and 50 deletions
@@ -194,7 +194,7 @@ public class ReactRootView extends SizeMonitoringFrameLayout
return;
}
ReactContext reactContext = mReactInstanceManager.getCurrentReactContext();
EventDispatcher eventDispatcher = reactContext.<EventDispatcher>getEventDispatcher();
EventDispatcher eventDispatcher = reactContext.getNativeModule(UIManagerModule.class).getEventDispatcher();
mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, eventDispatcher);
}
@@ -280,7 +280,7 @@ public class ReactRootView extends SizeMonitoringFrameLayout
return;
}
ReactContext reactContext = mReactInstanceManager.getCurrentReactContext();
EventDispatcher eventDispatcher = reactContext.<EventDispatcher>getEventDispatcher();
EventDispatcher eventDispatcher = reactContext.getNativeModule(UIManagerModule.class).getEventDispatcher();
mJSTouchDispatcher.handleTouchEvent(event, eventDispatcher);
}