Browse files

(iOS) Support for DemiBold alias of SemiBold (font-weight 600)

For more information on font weight naming see [this post](

DemiBold is fairly common in font naming. For example, iOS React Native lacks support of "AvNext-DemiBold".

Also removed warning about `NSUInteger` <=> `NSInteger` comparison, by making `i` an `NSUInteger`

Before and after screenshots:



Add any DemiBold font to an iOS react native project.  Set fontWeight to `'600'` on a `<Text />` component. The font weight should be applied appropriately.
Closes #15856

Differential Revision: D5800928

Pulled By: shergin

fbshipit-source-id: 9095e3e150847f9cb828aa5d080567846441e55d
  • Loading branch information...
wildseansy authored and facebook-github-bot committed Sep 9, 2017
1 parent 4ca6172 commit 73c3aa8d326a24608e88949e71dbb910b604dede
Showing with 2 additions and 0 deletions.
  1. +2 −0 React/Views/
@@ -50,6 +50,7 @@ static RCTFontWeight weightOfFont(UIFont *font)
@@ -62,6 +63,7 @@ static RCTFontWeight weightOfFont(UIFont *font)

0 comments on commit 73c3aa8

Please sign in to comment.