From 9d0d7b61b69a0395ebbcb0ddbfb324e38dbe070a Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Fri, 31 May 2019 02:58:00 -0700 Subject: [PATCH] Add ultrabold pairs for font weight (#24948) Summary: Add `ultrabold` map of font weight, if not, `ultrabold` would map to `bold`. Fixes https://github.com/facebook/react-native/issues/23512. ## Changelog [iOS] [Fixed] - Add ultrabold pairs for font weight Pull Request resolved: https://github.com/facebook/react-native/pull/24948 Differential Revision: D15575568 Pulled By: cpojer fbshipit-source-id: 5d1d6a033c166d91a330526ba8996ac0416f3887 --- React/Views/RCTFont.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/React/Views/RCTFont.mm b/React/Views/RCTFont.mm index e686637953a..8c0e6d88c81 100644 --- a/React/Views/RCTFont.mm +++ b/React/Views/RCTFont.mm @@ -32,6 +32,7 @@ static RCTFontWeight weightOfFont(UIFont *font) @"semibold", @"demibold", @"extrabold", + @"ultrabold", @"bold", @"heavy", @"black" @@ -46,6 +47,7 @@ static RCTFontWeight weightOfFont(UIFont *font) @(UIFontWeightSemibold), @(UIFontWeightSemibold), @(UIFontWeightHeavy), + @(UIFontWeightHeavy), @(UIFontWeightBold), @(UIFontWeightHeavy), @(UIFontWeightBlack)