mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-22 10:59:05 +00:00
Switches RNSVGPath.m and RNSVGText.m strokeDash to new strokeDasharray
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user