[ReactNative] wrong deprecated prop check in RCTConvert

This commit is contained in:
Kevin Gozali 2015-04-06 15:00:41 -07:00
parent b9219ab07e
commit e14b5a13c1

View File

@ -223,7 +223,7 @@ RCT_ENUM_CONVERTER(UIBarStyle, (@{
json = [json mutableCopy]; \
for (NSString *alias in aliases) { \
NSString *key = aliases[alias]; \
NSNumber *number = json[key]; \
NSNumber *number = json[alias]; \
if (number) { \
RCTLogWarn(@"Using deprecated '%@' property for '%s'. Use '%@' instead.", alias, #type, key); \
((NSMutableDictionary *)json)[key] = number; \