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 11:54:45 -08:00 коммит произвёл Facebook Github Bot
Родитель 7fff4679d2
Коммит 2db0c75cd4
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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(),