[fix] style warnings for text and SVG

Allow 'fill' as a valid style property.
Allow 'textAlignVertical' to be any string.
This commit is contained in:
Nicolas Gallagher
2017-10-13 13:17:24 -07:00
parent f1ee3c003a
commit 45b3d8b0df
2 changed files with 2 additions and 1 deletions
@@ -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,
+1 -1
View File
@@ -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,