mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-14 16:39:47 +08:00
[ReactNative] wrong deprecated prop check in RCTConvert
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user