[fix] Prevent maxFontSizeMultiplier prop forwarding to DOM

Close #1313
This commit is contained in:
Janic Duplessis
2019-03-28 23:24:14 -04:00
committed by Nicolas Gallagher
parent 70e3ea8b57
commit 3eeda686b1
3 changed files with 4 additions and 0 deletions
@@ -21,6 +21,7 @@ const TextPropTypes = {
accessible: bool, accessible: bool,
children: any, children: any,
importantForAccessibility: oneOf(['auto', 'no', 'no-hide-descendants', 'yes']), importantForAccessibility: oneOf(['auto', 'no', 'no-hide-descendants', 'yes']),
maxFontSizeMultiplier: number,
nativeID: string, nativeID: string,
numberOfLines: number, numberOfLines: number,
onBlur: func, onBlur: func,
+1
View File
@@ -47,6 +47,7 @@ class Text extends Component<*> {
allowFontScaling, allowFontScaling,
ellipsizeMode, ellipsizeMode,
lineBreakMode, lineBreakMode,
maxFontSizeMultiplier,
minimumFontScale, minimumFontScale,
onLayout, onLayout,
onLongPress, onLongPress,
@@ -95,6 +95,7 @@ class TextInput extends Component<*> {
'url', 'url',
'web-search' 'web-search'
]), ]),
maxFontSizeMultiplier: number,
maxLength: number, maxLength: number,
multiline: bool, multiline: bool,
numberOfLines: number, numberOfLines: number,
@@ -202,6 +203,7 @@ class TextInput extends Component<*> {
inlineImagePadding, inlineImagePadding,
inputAccessoryViewID, inputAccessoryViewID,
keyboardAppearance, keyboardAppearance,
maxFontSizeMultiplier,
needsOffscreenAlphaCompositing, needsOffscreenAlphaCompositing,
onAccessibilityTap, onAccessibilityTap,
onContentSizeChange, onContentSizeChange,