Skip to content

Commit

Permalink
Enable PlatformColor / DynamicColorIOS for iOS (#6477)
Browse files Browse the repository at this point in the history
Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
  • Loading branch information
danilobuerger and guyca authored Aug 18, 2020
1 parent a13698b commit 57519ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ios/ColorParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ @implementation ColorParser

+ (Color *)parse:(NSDictionary *)json key:(NSString *)key {
if (json[key]) {
return [json[key] isKindOfClass:[NSNumber class]] ? [[Color alloc] initWithValue:[RCTConvert UIColor:json[key]]] : [NoColor new];
return [[Color alloc] initWithValue:[RCTConvert UIColor:json[key]]] ?: [NoColor new];
}
return [NullColor new];
}
Expand Down

0 comments on commit 57519ca

Please sign in to comment.