From 8e7d31cff59864aacfa54cc3275daa6fc494af99 Mon Sep 17 00:00:00 2001 From: Rick Date: Sun, 30 Sep 2018 14:48:54 +0200 Subject: [PATCH] [fix] ignore native-only TextInput props TextInput inherits ViewPropTypes but many of them do nothing (even in React Native). Close #1123 --- .../src/exports/TextInput/index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/react-native-web/src/exports/TextInput/index.js b/packages/react-native-web/src/exports/TextInput/index.js index 8e65dfc2..9d3154af 100644 --- a/packages/react-native-web/src/exports/TextInput/index.js +++ b/packages/react-native-web/src/exports/TextInput/index.js @@ -175,8 +175,6 @@ class TextInput extends Component<*> { const { autoCorrect, editable, - /* eslint-disable */ - inputAccessoryViewID, keyboardType, multiline, numberOfLines, @@ -193,22 +191,34 @@ class TextInput extends Component<*> { selectTextOnFocus, spellCheck, /* react-native compat */ + accessibilityViewIsModal, + allowFontScaling, caretHidden, clearButtonMode, dataDetectorTypes, disableFullscreenUI, enablesReturnKeyAutomatically, + hitSlop, inlineImageLeft, inlineImagePadding, + inputAccessoryViewID, keyboardAppearance, + needsOffscreenAlphaCompositing, + onAccessibilityTap, onContentSizeChange, onEndEditing, + onMagicTap, onScroll, + removeClippedSubviews, + renderToHardwareTextureAndroid, returnKeyLabel, returnKeyType, + scrollEnabled, selectionColor, selectionState, + shouldRasterizeIOS, textBreakStrategy, + textContentType, underlineColorAndroid, /* eslint-enable */ ...otherProps