ReactCompoundViewGroup

This interface should be implemented by native ViewGroup subclasses that can represent more than a single react node. In that case, virtual and non-virtual (mapping to a View) elements can overlap, and TouchTargetHelper may incorrectly dispatch touch event to a wrong element because it prioritizes children over parents.

Functions

Link copied to clipboard
abstract fun interceptsTouchEvent(touchX: Float, touchY: Float): Boolean

Returns true if react node responsible for the touch event is flattened into this ViewGroup. Use reactTagForTouch() to get its tag.

Link copied to clipboard
abstract fun reactTagForTouch(touchX: Float, touchY: Float): Int

Return react tag for touched element. Event coordinates are relative to the view