From e14b5a13c11e922b4be09b234454fb446d9655ca Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Mon, 6 Apr 2015 15:00:41 -0700 Subject: [PATCH] [ReactNative] wrong deprecated prop check in RCTConvert --- React/Base/RCTConvert.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Base/RCTConvert.m b/React/Base/RCTConvert.m index 5fbc2d527..abb96b398 100644 --- a/React/Base/RCTConvert.m +++ b/React/Base/RCTConvert.m @@ -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; \