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
This commit is contained in:
zhongwuzw
2019-05-31 03:08:36 -07:00
committed by Facebook Github Bot
parent 284c5f0ad0
commit 9d0d7b61b6
+2
View File
@@ -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)