Add onChildEndedNativeGesture to JSTouchDispatcher and ReactRootView to handle child gesture finishes event

Summary:
Changelog:
[Android][Added] Adding new API `onChildEndedNativeGesture` to the RootView interface to let its implementations notify the JS side that a child gesture is ended.

Reviewed By: javache

Differential Revision: D32228745

fbshipit-source-id: ad1f26546dd60f9c5a569b0bc3ad5020a01b90cc
This commit is contained in:
Xin Chen authored and Facebook GitHub Bot committed 2021-11-09 12:53:14 -08:00
1 parent e973b3afc2
commit 9b33c31ee0
5 files changed
+58 -8

No files matched your search

@@ -22,5 +22,11 @@ public interface RootView {
/** @deprecated */
void onChildStartedNativeGesture(MotionEvent ev);
/**
* Called when a child ends a native gesture. Should be called from the child's onTouchIntercepted
* implementation.
*/
void onChildEndedNativeGesture(View childView, MotionEvent ev);
void handleException(Throwable t);
}