findTargetTagForTouch

open fun findTargetTagForTouch(eventX: Float, eventY: Float, viewGroup: ViewGroup): Int

Find touch event target view within the provided container given the coordinates provided via MotionEvent.

Return

the react tag ID of the child view that should handle the event

Parameters

eventX

the X screen coordinate of the touch location

eventY

the Y screen coordinate of the touch location

viewGroup

the container view to traverse


open fun findTargetTagForTouch(eventX: Float, eventY: Float, viewGroup: ViewGroup, @Nullable nativeViewId: Array<Int>): Int

Find touch event target view within the provided container given the coordinates provided via MotionEvent.

Return

the react tag ID of the child view that should handle the event

Parameters

eventX

the X screen coordinate of the touch location

eventY

the Y screen coordinate of the touch location

viewGroup

the container view to traverse

nativeViewId

the native react view containing this touch target