mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
284c5f0ad0
commit
9d0d7b61b6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user