Switches RNSVGPath.m and RNSVGText.m strokeDash to new strokeDasharray

This commit is contained in:
duhduhdan
2016-04-23 11:40:53 -07:00
parent 7d37cde40d
commit d3235ed6a2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
CGContextSetLineWidth(context, self.strokeWidth);
CGContextSetLineCap(context, self.strokeLinecap);
CGContextSetLineJoin(context, self.strokeLinejoin);
RNSVGCGFloatArray dash = self.strokeDash;
RNSVGCGFloatArray dash = self.strokeDasharray;
if (dash.count) {
CGContextSetLineDash(context, self.strokeDashoffset, dash.array, dash.count);
+1 -1
View File
@@ -83,7 +83,7 @@ static void RNSVGFreeTextFrame(RNSVGTextFrame frame)
CGContextSetLineWidth(context, self.strokeWidth);
CGContextSetLineCap(context, self.strokeLinecap);
CGContextSetLineJoin(context, self.strokeLinejoin);
RNSVGCGFloatArray dash = self.strokeDash;
RNSVGCGFloatArray dash = self.strokeDasharray;
if (dash.count) {
CGContextSetLineDash(context, self.strokeDashoffset, dash.array, dash.count);