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 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:
committed by
Facebook Github Bot
parent
7fff4679d2
commit
2db0c75cd4
+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