Backout migration of events on ScrollView to be bridgeless

Summary:
This diff back out the migration of events on ScrollView to be bridgeless (D18862857)
This is causing the bug: T59882485 and the migration is not necessary in production yet.

Heads-up ejanzer this diff will affect events for scroll in Venice, I will create another diff to figure it out the root cause. But we need the land and pick this diff in v252

Changelog: [internal]

Reviewed By: ejanzer

Differential Revision: D19269906

fbshipit-source-id: d61e67975d508cddafc3af34b0f7dfe83bda6bd7
This commit is contained in:
David Vacca
2020-01-02 18:39:21 -08:00
committed by Facebook Github Bot
parent 4aac019176
commit b39f69d4b7
@@ -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.UIManagerHelper;
import com.facebook.react.uimanager.UIManagerModule;
/** Helper class that deals with emitting Scroll Events. */
public class ReactScrollViewHelper {
@@ -57,7 +57,9 @@ public class ReactScrollViewHelper {
}
ReactContext reactContext = (ReactContext) scrollView.getContext();
UIManagerHelper.getEventDispatcherForReactTag(reactContext, scrollView.getId())
reactContext
.getNativeModule(UIManagerModule.class)
.getEventDispatcher()
.dispatchEvent(
ScrollEvent.obtain(
scrollView.getId(),