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:
Giampaolo Bellavite 2015-06-09 07:39:02 +02:00
parent 1319bfb2e0
commit fd50216a43

View File

@ -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;
}