Fixed broken font weight on iPhone 5

This commit is contained in:
Nick Lockwood
2015-04-21 21:08:20 -01:00
parent 32084c90a2
commit 2ee7ebae1f
3 changed files with 13 additions and 12 deletions

View File

@@ -7,8 +7,6 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <objc/message.h>
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
@@ -186,8 +184,7 @@ RCT_CUSTOM_CONVERTER(type, type, [[self NSNumber:json] getter])
dispatch_once(&onceToken, ^{ \
mapping = values; \
}); \
NSNumber *converted = RCTConvertEnumValue(#type, mapping, @(default), json); \
return ((type(*)(id, SEL))objc_msgSend)(converted, @selector(getter)); \
return [RCTConvertEnumValue(#type, mapping, @(default), json) getter]; \
}
/**