Migrate events on ReactRootView and ScrollView to be bridgeless

Summary:
This diff migrates ScrollView events to be compatible with Bridgeless React mode
Changelog: [internal]

Reviewed By: makovkastar

Differential Revision: D19383061

fbshipit-source-id: d303d104a7f3bde8ba54c7be830691146c19072e
This commit is contained in:
David Vacca
2020-01-23 12:00:24 -08:00
committed by Facebook Github Bot
parent 7fff4679d2
commit 2db0c75cd4
@@ -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(),