mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2025-02-03 03:14:53 +00:00
Resolve semantic issue warning
This should resolve the semantic issue warning i get for that line: ``` BVLinearGradient.m:22:24: Incompatible pointer types sending 'CGColorRef' (aka 'struct CGColor *') to parameter of type 'id' ```
This commit is contained in:
parent
1319bfb2e0
commit
fd50216a43
@ -19,7 +19,7 @@
|
||||
{
|
||||
NSMutableArray *colors = [NSMutableArray arrayWithCapacity:colorStrings.count];
|
||||
for (NSString *colorString in colorStrings) {
|
||||
[colors addObject:[RCTConvert UIColor:colorString].CGColor];
|
||||
[colors addObject:(id)[RCTConvert UIColor:colorString].CGColor];
|
||||
}
|
||||
self.gradientLayer.colors = colors;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user