From 45b3d8b0df9215394aeea51d0cb5749735ba0a23 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 13 Oct 2017 13:17:24 -0700 Subject: [PATCH] [fix] style warnings for text and SVG Allow 'fill' as a valid style property. Allow 'textAlignVertical' to be any string. --- src/apis/StyleSheet/StyleSheetValidation.js | 1 + src/components/Text/TextStylePropTypes.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apis/StyleSheet/StyleSheetValidation.js b/src/apis/StyleSheet/StyleSheetValidation.js index 80db43f0..9f194a4f 100644 --- a/src/apis/StyleSheet/StyleSheetValidation.js +++ b/src/apis/StyleSheet/StyleSheetValidation.js @@ -91,6 +91,7 @@ StyleSheetValidation.addValidStylePropTypes({ borderSpacing: oneOf([number, string]), clear: string, cursor: string, + fill: string, float: oneOf(['left', 'none', 'right']), font: string /* @private */, listStyle: string, diff --git a/src/components/Text/TextStylePropTypes.js b/src/components/Text/TextStylePropTypes.js index 057c6dbe..db122180 100644 --- a/src/components/Text/TextStylePropTypes.js +++ b/src/components/Text/TextStylePropTypes.js @@ -30,7 +30,7 @@ const TextStylePropTypes = { letterSpacing: numberOrString, lineHeight: numberOrString, textAlign: TextAlignPropType, - textAlignVertical: oneOf(['auto', 'bottom', 'center', 'top']), + textAlignVertical: string, textDecorationColor: ColorPropType, textDecorationLine: string, textDecorationStyle: string,