[change] ignore unsupported React Native props

Ignores RN props that RN packages commonly applied to elements without
scoping them to supported platforms.

Fix #252
This commit is contained in:
Nicolas Gallagher
2016-11-23 09:27:27 -08:00
parent f5f9389728
commit 94d31beaf4
2 changed files with 19 additions and 5 deletions

View File

@@ -29,10 +29,17 @@ class Text extends Component {
render() {
const {
numberOfLines,
onLayout, // eslint-disable-line
onPress, // eslint-disable-line
selectable,
style,
/* eslint-disable */
adjustsFontSizeToFit,
allowFontScaling,
ellipsizeMode,
minimumFontScale,
onLayout,
onPress,
suppressHighlighting,
/* eslint-enable */
...other
} = this.props;

View File

@@ -87,11 +87,18 @@ class View extends Component {
render() {
const {
collapsable, // eslint-disable-line
hitSlop, // eslint-disable-line
onLayout, // eslint-disable-line
pointerEvents,
style,
/* eslint-disable */
accessibilityComponentType,
accessibilityTraits,
collapsable,
hitSlop,
onAccessibilityTap,
onLayout,
onMagicTap,
removeClippedSubviews,
/* eslint-enable */
...other
} = this.props;