mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
e295f4a394
commit
b28cd93b68
+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(),
|
||||
|
||||
Reference in New Issue
Block a user