react-native-navigation的迁移库

RCTConvert+UIFontWeight.h 571B

12345678910111213141516171819202122
  1. #import <React/RCTConvert.h>
  2. @interface RCTConvert (UIFontWeight)
  3. @end
  4. @implementation RCTConvert (UIFontWeight)
  5. RCT_ENUM_CONVERTER(UIFontWeight,
  6. (@{@"ultraLight": @(UIFontWeightUltraLight),
  7. @"thin": @(UIFontWeightThin),
  8. @"light": @(UIFontWeightLight),
  9. @"regular": @(UIFontWeightRegular),
  10. @"medium": @(UIFontWeightMedium),
  11. @"semibold": @(UIFontWeightSemibold),
  12. @"bold": @(UIFontWeightBold),
  13. @"heavy": @(UIFontWeightHeavy),
  14. @"black": @(UIFontWeightBlack)
  15. }), UIFontWeightRegular, floatValue)
  16. @end