mirror of
https://github.com/react/react-native.git
synced 2026-10-30 02:23:12 +08:00
Initialize Event Emitter as part of UIManagerModule
Reviewed By: achen1 Differential Revision: D8216184 fbshipit-source-id: 3b188804e2dad2b112f566da49a939eb4338713d
This commit is contained in:
committed by
Facebook Github Bot
parent
0f10e03dd8
commit
6e359c4589
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user