findTargetTagAndCoordinatesForTouch

open fun findTargetTagAndCoordinatesForTouch(eventX: Float, eventY: Float, viewGroup: ViewGroup, viewCoords: Array<Float>, @Nullable nativeViewTag: 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

viewCoords

an out parameter that will return the X,Y value in the target view

nativeViewTag

an out parameter that will return the native view id