Migrate events on ReactRootView and ScrollView to be bridgeless

Summary:
This diff migrates a couple of events callsites of ReactRootView and ScrollView to be compatible with Bridgeless React mode

Changelog: [internal]

Reviewed By: ejanzer

Differential Revision: D18862857

fbshipit-source-id: f8e0d2d684bfaf84e9c138746507bb7728481b18
This commit is contained in:
David Vacca
2019-12-11 18:39:50 -08:00
committed by Facebook Github Bot
parent e295f4a394
commit b28cd93b68
@@ -11,7 +11,7 @@ import android.view.View;
import android.view.ViewGroup;
import com.facebook.react.bridge.JSApplicationIllegalArgumentException;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.uimanager.UIManagerModule;
import com.facebook.react.uimanager.UIManagerHelper;
/** Helper class that deals with emitting Scroll Events. */
public class ReactScrollViewHelper {
@@ -57,9 +57,7 @@ public class ReactScrollViewHelper {
}
ReactContext reactContext = (ReactContext) scrollView.getContext();
reactContext
.getNativeModule(UIManagerModule.class)
.getEventDispatcher()
UIManagerHelper.getEventDispatcherForReactTag(reactContext, scrollView.getId())
.dispatchEvent(
ScrollEvent.obtain(
scrollView.getId(),