mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 06:04:15 +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]; \
|
json = [json mutableCopy]; \
|
||||||
for (NSString *alias in aliases) { \
|
for (NSString *alias in aliases) { \
|
||||||
NSString *key = aliases[alias]; \
|
NSString *key = aliases[alias]; \
|
||||||
NSNumber *number = json[key]; \
|
NSNumber *number = json[alias]; \
|
||||||
if (number) { \
|
if (number) { \
|
||||||
RCTLogWarn(@"Using deprecated '%@' property for '%s'. Use '%@' instead.", alias, #type, key); \
|
RCTLogWarn(@"Using deprecated '%@' property for '%s'. Use '%@' instead.", alias, #type, key); \
|
||||||
((NSMutableDictionary *)json)[key] = number; \
|
((NSMutableDictionary *)json)[key] = number; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user