mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deprecate UIManagerModule#getEventDispatcher and refactor usages
Reviewed By: shergin Differential Revision: D7832079 fbshipit-source-id: 263a2f8ff96ab6e14b91395644710b4d5f36dc50
This commit is contained in:
committed by
Facebook Github Bot
parent
a04ad8d8fb
commit
54acf3a431
@@ -194,8 +194,7 @@ public class ReactRootView extends SizeMonitoringFrameLayout
|
||||
return;
|
||||
}
|
||||
ReactContext reactContext = mReactInstanceManager.getCurrentReactContext();
|
||||
EventDispatcher eventDispatcher = reactContext.getNativeModule(UIManagerModule.class)
|
||||
.getEventDispatcher();
|
||||
EventDispatcher eventDispatcher = reactContext.<EventDispatcher>getEventDispatcher();
|
||||
mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, eventDispatcher);
|
||||
}
|
||||
|
||||
@@ -281,8 +280,7 @@ public class ReactRootView extends SizeMonitoringFrameLayout
|
||||
return;
|
||||
}
|
||||
ReactContext reactContext = mReactInstanceManager.getCurrentReactContext();
|
||||
EventDispatcher eventDispatcher = reactContext.getNativeModule(UIManagerModule.class)
|
||||
.getEventDispatcher();
|
||||
EventDispatcher eventDispatcher = reactContext.<EventDispatcher>getEventDispatcher();
|
||||
mJSTouchDispatcher.handleTouchEvent(event, eventDispatcher);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user