diff --git a/React/Base/RCTConvert.m b/React/Base/RCTConvert.m index fe9a9456b..a46379ae8 100644 --- a/React/Base/RCTConvert.m +++ b/React/Base/RCTConvert.m @@ -670,11 +670,6 @@ static BOOL RCTFontIsCondensed(UIFont *font) isCondensed = RCTFontIsCondensed(font); } - // Get font weight - if (weight) { - fontWeight = [self RCTFontWeight:weight]; - } - // Get font style if (style) { isItalic = [self RCTFontStyle:style]; @@ -700,6 +695,11 @@ static BOOL RCTFontIsCondensed(UIFont *font) } } + // Get font weight + if (weight) { + fontWeight = [self RCTFontWeight:weight]; + } + // Get closest match UIFont *bestMatch = font; CGFloat closestWeight = font ? RCTWeightOfFont(font) : INFINITY;