Add emitting view to onChildStartedNativeGesture callback

Summary:
Changelog:
[Android][Changed] RootView's onChildStartedNativeGesture now takes the child view as its first argument

Reviewed By: philIip

Differential Revision: D31399515

fbshipit-source-id: b9438f6118e604a04799ef67d0b46303a06d6434
This commit is contained in:
Pieter De Baets authored and Facebook GitHub Bot committed 2021-10-21 03:43:49 -07:00
1 parent e007c8a9de
commit 03e513de41
4 files changed
+20 -6

No files matched your search

@@ -8,6 +8,7 @@
package com.facebook.react.uimanager;
import android.view.MotionEvent;
import android.view.View;
/** Interface for the root native view of a React native application. */
public interface RootView {
@@ -16,7 +17,10 @@ public interface RootView {
* Called when a child starts a native gesture (e.g. a scroll in a ScrollView). Should be called
* from the child's onTouchIntercepted implementation.
*/
void onChildStartedNativeGesture(MotionEvent androidEvent);
void onChildStartedNativeGesture(View childView, MotionEvent ev);
/** @deprecated */
void onChildStartedNativeGesture(MotionEvent ev);
void handleException(Throwable t);
}