Package 

Interface ReactCompoundView


  • 
    public interface ReactCompoundView
    
                        

    This interface should be implemented be native View subclasses that can represent more than a single react node (e.g. TextView). It is use by touch event emitter for determining the react tag of the inner-view element that was touched.

    • Method Summary

      Modifier and Type Method Description
      abstract int reactTagForTouch(float touchX, float touchY) Return react tag for touched element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • reactTagForTouch

         abstract int reactTagForTouch(float touchX, float touchY)

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

        Parameters:
        touchX - the X touch coordinate relative to the view
        touchY - the Y touch coordinate relative to the view