Fix profile build
Reviewed By: jspahrsummers Differential Revision: D2717604 fb-gh-sync-id: 9817bf743de0d6b5bd22f12ae50a8e1f99c1c0c3
This commit is contained in:
parent
8e55858397
commit
1a748f5ed6
|
@ -172,7 +172,7 @@ NSNumber *RCTConvertEnumValue(const char *typeName, NSDictionary *mapping, NSNum
|
|||
}
|
||||
if ([json isKindOfClass:[NSNumber class]]) {
|
||||
NSArray *allValues = mapping.allValues;
|
||||
if ([mapping.allValues containsObject:json] || [json isEqual:defaultValue]) {
|
||||
if ([allValues containsObject:json] || [json isEqual:defaultValue]) {
|
||||
return json;
|
||||
}
|
||||
RCTLogError(@"Invalid %s '%@'. should be one of: %@", typeName, json, allValues);
|
||||
|
|
Loading…
Reference in New Issue