diff --git a/BVLinearGradient.m b/BVLinearGradient.m index 9d915ac..bc5b0d3 100644 --- a/BVLinearGradient.m +++ b/BVLinearGradient.m @@ -24,14 +24,14 @@ self.gradientLayer.colors = colors; } -- (void)setStart:(NSArray *)start +- (void)setStart:(CGPoint)start { - self.gradientLayer.startPoint = [RCTConvert CGPoint:start]; + self.gradientLayer.startPoint = start; } -- (void)setEnd:(NSArray *)end +- (void)setEnd:(CGPoint)end { - self.gradientLayer.endPoint = [RCTConvert CGPoint:end]; + self.gradientLayer.endPoint = end; } - (void)setLocations:(NSArray *)locations diff --git a/BVLinearGradientManager.m b/BVLinearGradientManager.m index 60ebfff..339a365 100644 --- a/BVLinearGradientManager.m +++ b/BVLinearGradientManager.m @@ -19,8 +19,8 @@ RCT_EXPORT_MODULE(); } RCT_EXPORT_VIEW_PROPERTY(colors, NSArray); -RCT_EXPORT_VIEW_PROPERTY(start, NSArray); -RCT_EXPORT_VIEW_PROPERTY(end, NSArray); +RCT_EXPORT_VIEW_PROPERTY(start, CGPoint); +RCT_EXPORT_VIEW_PROPERTY(end, CGPoint); RCT_EXPORT_VIEW_PROPERTY(locations, NSArray); @end