mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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);
|
||||
}
|
||||
Reference in new issue
Block a user