View#pointerEvents

pointerEvents enum('box-none', 'none', 'box-only', 'auto')

Controls whether the View can be the target of touch events.

  • 'auto': The View can be the target of touch events.
  • 'none': The View is never the target of touch events.
  • 'box-none': The View is never the target of touch events but it's subviews can be. It behaves like if the view had the following classes in CSS:
    .box-none {
        pointer-events: none;
    }
    .box-none * {
        pointer-events: all;
    }
  • 'box-only': The view can be the target of touch events but it's subviews cannot be. It behaves like if the view had the following classes in CSS:
    .box-only {
        pointer-events: all;
    }
    .box-only * {
        pointer-events: none;
    }
doc_React_Native
2016-06-23 04:26:07
Comments
Leave a Comment

Please login to continue.