12345678910111213141516171819202122 |
- #import <React/RCTConvert.h>
-
- @interface RCTConvert (UIFontWeight)
-
- @end
-
- @implementation RCTConvert (UIFontWeight)
-
- RCT_ENUM_CONVERTER(UIFontWeight,
- (@{@"ultraLight": @(UIFontWeightUltraLight),
- @"thin": @(UIFontWeightThin),
- @"light": @(UIFontWeightLight),
- @"regular": @(UIFontWeightRegular),
- @"medium": @(UIFontWeightMedium),
- @"semibold": @(UIFontWeightSemibold),
- @"bold": @(UIFontWeightBold),
- @"heavy": @(UIFontWeightHeavy),
- @"black": @(UIFontWeightBlack)
- }), UIFontWeightRegular, floatValue)
-
- @end
|