From 972bbd7adf95e5fb5d77d7066126abae80a23baa Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Wed, 25 Mar 2015 09:23:37 -0700 Subject: [PATCH] [react_native] JS files from D1941151: Allow fontWeight to be 100,200,...,900 --- Libraries/Text/TextStylePropTypes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/Text/TextStylePropTypes.js b/Libraries/Text/TextStylePropTypes.js index 8ed2c0f10..632bc9e9d 100644 --- a/Libraries/Text/TextStylePropTypes.js +++ b/Libraries/Text/TextStylePropTypes.js @@ -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,