From c40fee9405bbd18fb609927badd9a2474701a44a Mon Sep 17 00:00:00 2001 From: Jacob Parker Date: Thu, 25 Aug 2016 16:01:32 -0700 Subject: [PATCH] Mark Text style fontVariant as iOS only Summary: fontVariant implemented in #9045. Appears to have lost platform annotation. Also fixes indentation. Closes https://github.com/facebook/react-native/pull/9587 Differential Revision: D3774192 Pulled By: javache fbshipit-source-id: 9bce0b9c39fa31ef40d01e94b699b1299914b67b --- Libraries/Text/TextStylePropTypes.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Libraries/Text/TextStylePropTypes.js b/Libraries/Text/TextStylePropTypes.js index 8705506b3..4edb225b7 100644 --- a/Libraries/Text/TextStylePropTypes.js +++ b/Libraries/Text/TextStylePropTypes.js @@ -30,14 +30,17 @@ var TextStylePropTypes = Object.assign(Object.create(ViewStylePropTypes), { ['normal' /*default*/, 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'] ), - fontVariant: ReactPropTypes.arrayOf( - ReactPropTypes.oneOf([ - 'small-caps', - 'oldstyle-nums', - 'lining-nums', - 'tabular-nums', - 'proportional-nums', - ]) + /** + * @platform ios + */ + fontVariant: ReactPropTypes.arrayOf( + ReactPropTypes.oneOf([ + 'small-caps', + 'oldstyle-nums', + 'lining-nums', + 'tabular-nums', + 'proportional-nums', + ]) ), textShadowOffset: ReactPropTypes.shape( {width: ReactPropTypes.number, height: ReactPropTypes.number}