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
This commit is contained in:
parent
06ee832928
commit
c40fee9405
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue