[add] fontFeatureSettings 'Text' style

Fix #331
This commit is contained in:
Nicolas Gallagher
2017-02-18 12:18:26 -08:00
parent 30da226e4d
commit b653fe0bd3
3 changed files with 3 additions and 3 deletions
+1
View File
@@ -63,6 +63,7 @@ Lets the user select the text.
+ ...[View#style](View.md) + ...[View#style](View.md)
+ `color` + `color`
+ `fontFamily` + `fontFamily`
+ `fontFeatureSettings`
+ `fontSize` + `fontSize`
+ `fontStyle` + `fontStyle`
+ `fontWeight` + `fontWeight`
+1 -3
View File
@@ -71,12 +71,10 @@ StyleSheetValidation.addValidStylePropTypes({
appearance: PropTypes.string, appearance: PropTypes.string,
clear: PropTypes.string, clear: PropTypes.string,
cursor: PropTypes.string, cursor: PropTypes.string,
display: PropTypes.string,
float: PropTypes.oneOf([ 'left', 'none', 'right' ]), float: PropTypes.oneOf([ 'left', 'none', 'right' ]),
font: PropTypes.string, /* @private */ font: PropTypes.string, /* @private */
listStyle: PropTypes.string, listStyle: PropTypes.string,
pointerEvents: PropTypes.string, pointerEvents: PropTypes.string
WebkitOverflowScrolling: PropTypes.string /* @private */
}) })
module.exports = StyleSheetValidation module.exports = StyleSheetValidation
@@ -12,6 +12,7 @@ const WritingDirectionPropType = oneOf([ 'auto', 'ltr', 'rtl' ]);
const TextOnlyStylePropTypes = { const TextOnlyStylePropTypes = {
color: ColorPropType, color: ColorPropType,
fontFamily: string, fontFamily: string,
fontFeatureSettings: string,
fontSize: numberOrString, fontSize: numberOrString,
fontStyle: string, fontStyle: string,
fontWeight: string, fontWeight: string,