From 4822cf46204cdb635040b14621203e15bc621193 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Sat, 22 Apr 2017 10:06:27 -0700 Subject: [PATCH] [add] support for 'clip' and 'textIndent' styles --- docs/components/Text.md | 1 + docs/components/View.md | 1 + src/components/Text/TextStylePropTypes.js | 1 + src/components/View/ViewStylePropTypes.js | 1 + 4 files changed, 4 insertions(+) diff --git a/docs/components/Text.md b/docs/components/Text.md index b0b2a14a..4696c089 100644 --- a/docs/components/Text.md +++ b/docs/components/Text.md @@ -85,6 +85,7 @@ When `false`, the text is not selectable. + `textAlign` + `textAlignVertical` + `textDecorationLine` ++ `textIndent` ‡ + `textOverflow` ‡ + `textRendering` ‡ + `textShadowColor` diff --git a/docs/components/View.md b/docs/components/View.md index b15279e6..6126778b 100644 --- a/docs/components/View.md +++ b/docs/components/View.md @@ -188,6 +188,7 @@ Controls whether the View can be the target of touch events. The enhanced + `bottom` + `boxShadow` + `boxSizing` ++ `clip` ‡ + `cursor` ‡ + `display` + `filter` ‡ diff --git a/src/components/Text/TextStylePropTypes.js b/src/components/Text/TextStylePropTypes.js index 5eacc872..1a391d8f 100644 --- a/src/components/Text/TextStylePropTypes.js +++ b/src/components/Text/TextStylePropTypes.js @@ -25,6 +25,7 @@ const TextOnlyStylePropTypes = { textShadowRadius: number, writingDirection: WritingDirectionPropType, /* @platform web */ + textIndent: numberOrString, textOverflow: string, textRendering: oneOf(['auto', 'geometricPrecision', 'optimizeLegibility', 'optimizeSpeed']), textTransform: oneOf(['capitalize', 'lowercase', 'none', 'uppercase']), diff --git a/src/components/View/ViewStylePropTypes.js b/src/components/View/ViewStylePropTypes.js index 123b8046..828a2313 100644 --- a/src/components/View/ViewStylePropTypes.js +++ b/src/components/View/ViewStylePropTypes.js @@ -29,6 +29,7 @@ module.exports = { backgroundRepeat: string, backgroundSize: string, boxShadow: string, + clip: string, cursor: string, filter: string, outline: string,