Remove pointerEvents code from View

This commit is contained in:
Nicolas Gallagher
2017-03-20 22:51:14 -07:00
parent af805d67e6
commit 782125d169
+1 -22
View File
@@ -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));