Deprecate UIManagerModule#getEventDispatcher and refactor usages

Reviewed By: shergin

Differential Revision: D7832079

fbshipit-source-id: 263a2f8ff96ab6e14b91395644710b4d5f36dc50
This commit is contained in:
David Vacca
2018-05-30 21:49:03 -07:00
committed by Facebook Github Bot
parent a04ad8d8fb
commit 54acf3a431
19 changed files with 71 additions and 91 deletions
@@ -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);
}