[react_native] JS files from D1941151: Allow fontWeight to be 100,200,...,900

This commit is contained in:
Krzysztof Magiera 2015-03-25 09:23:37 -07:00
parent 15f6783f34
commit 972bbd7adf
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@ var ViewStylePropTypes = require('ViewStylePropTypes');
var TextStylePropTypes = Object.assign(Object.create(ViewStylePropTypes), {
fontFamily: ReactPropTypes.string,
fontSize: ReactPropTypes.number,
fontWeight: ReactPropTypes.oneOf(['normal' /*default*/, 'bold']),
fontWeight: ReactPropTypes.oneOf(
['normal' /*default*/, 'bold',
'100', '200', '300', '400', '500', '600', '700', '800', '900']
),
fontStyle: ReactPropTypes.oneOf(['normal', 'italic']),
lineHeight: ReactPropTypes.number,
color: ReactPropTypes.string,