mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
[ReactNative] wrong deprecated prop check in RCTConvert
This commit is contained in:
parent
b9219ab07e
commit
e14b5a13c1
@ -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; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user