From 782125d16933c5747690dd72f641bda702784cda Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 20 Mar 2017 22:51:14 -0700 Subject: [PATCH] Remove pointerEvents code from View --- src/components/View/index.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/components/View/index.js b/src/components/View/index.js index b1e9148a..3ebc0611 100644 --- a/src/components/View/index.js +++ b/src/components/View/index.js @@ -33,7 +33,6 @@ class View extends Component { render() { const { - pointerEvents, style, /* eslint-disable */ collapsable, @@ -49,12 +48,7 @@ class View extends Component { const { isInAButtonView } = this.context; const isButton = getAccessibilityRole(this.props) === 'button'; - otherProps.style = [ - styles.initial, - isButton && styles.buttonOnly, - style, - pointerEvents && pointerEventStyles[pointerEvents] - ]; + otherProps.style = [styles.initial, isButton && styles.buttonOnly, style]; const component = isInAButtonView ? 'span' : 'div'; return createDOMElement(component, otherProps); @@ -91,19 +85,4 @@ const styles = StyleSheet.create({ } }); -const pointerEventStyles = StyleSheet.create({ - auto: { - pointerEvents: 'auto' - }, - 'box-none': { - pointerEvents: 'box-none' - }, - 'box-only': { - pointerEvents: 'box-only' - }, - none: { - pointerEvents: 'none' - } -}); - module.exports = applyLayout(applyNativeMethods(View));