From 5a9289ff513812b5418d5b226491903605e84383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20=C5=BB=C3=B3=C5=82kiewski?= Date: Wed, 20 Aug 2025 16:03:25 +0200 Subject: [PATCH] fix: setting strokeMiterLimit prop --- android/src/main/java/com/horcrux/svg/RenderableView.java | 2 +- .../react/viewmanagers/RNSVGCircleManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGClipPathManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGEllipseManagerDelegate.java | 2 +- .../viewmanagers/RNSVGForeignObjectManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGGroupManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGImageManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGLineManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGMarkerManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGMaskManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGPathManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGPatternManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGRectManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGSymbolManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGTSpanManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGTextManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGTextPathManagerDelegate.java | 2 +- .../react/viewmanagers/RNSVGUseManagerDelegate.java | 2 +- apple/RNSVGRenderable.mm | 6 +++++- apps/fabric-example/ios/Podfile.lock | 8 ++++---- apps/paper-example/ios/Podfile.lock | 4 ++-- src/fabric/CircleNativeComponent.ts | 2 +- src/fabric/ClipPathNativeComponent.ts | 2 +- src/fabric/EllipseNativeComponent.ts | 2 +- src/fabric/ForeignObjectNativeComponent.ts | 2 +- src/fabric/GroupNativeComponent.ts | 2 +- src/fabric/ImageNativeComponent.ts | 2 +- src/fabric/LineNativeComponent.ts | 2 +- src/fabric/MarkerNativeComponent.ts | 2 +- src/fabric/MaskNativeComponent.ts | 2 +- src/fabric/PathNativeComponent.ts | 2 +- src/fabric/PatternNativeComponent.ts | 2 +- src/fabric/RectNativeComponent.ts | 2 +- src/fabric/SymbolNativeComponent.ts | 2 +- src/fabric/TSpanNativeComponent.ts | 2 +- src/fabric/TextNativeComponent.ts | 2 +- src/fabric/TextPathNativeComponent.ts | 2 +- src/fabric/UseNativeComponent.ts | 2 +- 38 files changed, 46 insertions(+), 42 deletions(-) diff --git a/android/src/main/java/com/horcrux/svg/RenderableView.java b/android/src/main/java/com/horcrux/svg/RenderableView.java index d3d792a3b..aa1bf1402 100644 --- a/android/src/main/java/com/horcrux/svg/RenderableView.java +++ b/android/src/main/java/com/horcrux/svg/RenderableView.java @@ -604,7 +604,7 @@ boolean setupStrokePaint(Paint paint, float opacity) { paint.setStyle(Paint.Style.STROKE); paint.setStrokeCap(strokeLinecap); paint.setStrokeJoin(strokeLinejoin); - paint.setStrokeMiter(strokeMiterlimit * mScale); + paint.setStrokeMiter(strokeMiterlimit); paint.setStrokeWidth((float) strokeWidth); setupPaint(paint, opacity, stroke); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGCircleManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGCircleManagerDelegate.java index b8620b573..ce6470ae8 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGCircleManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGCircleManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGClipPathManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGClipPathManagerDelegate.java index deef4310c..810febe27 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGClipPathManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGClipPathManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGEllipseManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGEllipseManagerDelegate.java index ed43295b6..aee676806 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGEllipseManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGEllipseManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGForeignObjectManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGForeignObjectManagerDelegate.java index d87bf7c3e..92477bbbe 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGForeignObjectManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGForeignObjectManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGGroupManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGGroupManagerDelegate.java index 47b0a7fc2..e1ba79718 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGGroupManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGGroupManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGImageManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGImageManagerDelegate.java index 376589d11..84a59ead3 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGImageManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGImageManagerDelegate.java @@ -96,7 +96,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGLineManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGLineManagerDelegate.java index 6bec1efce..c7f1c49f5 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGLineManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGLineManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMarkerManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMarkerManagerDelegate.java index 62c831ce6..ed0864eb4 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMarkerManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMarkerManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMaskManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMaskManagerDelegate.java index 2106b6967..2a69fe086 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMaskManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGMaskManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPathManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPathManagerDelegate.java index fba480b1a..ff5e3ed82 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPathManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPathManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPatternManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPatternManagerDelegate.java index f2aa9f87b..2a535cf1f 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPatternManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGPatternManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGRectManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGRectManagerDelegate.java index eae941243..6f9703a27 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGRectManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGRectManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGSymbolManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGSymbolManagerDelegate.java index 9bda7b55d..2d96bd7b8 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGSymbolManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGSymbolManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTSpanManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTSpanManagerDelegate.java index 1c7914577..f61111503 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTSpanManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTSpanManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextManagerDelegate.java index 14c8fea7c..76b69dda7 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextPathManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextPathManagerDelegate.java index 61fab1a7b..8012025f7 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextPathManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGTextPathManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGUseManagerDelegate.java b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGUseManagerDelegate.java index 0dd7b9940..4b6039461 100644 --- a/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGUseManagerDelegate.java +++ b/android/src/paper/java/com/facebook/react/viewmanagers/RNSVGUseManagerDelegate.java @@ -95,7 +95,7 @@ public void setProperty(T view, String propName, @Nullable Object value) { mViewManager.setStrokeDashoffset(view, value == null ? 0f : ((Double) value).floatValue()); break; case "strokeMiterlimit": - mViewManager.setStrokeMiterlimit(view, value == null ? 0f : ((Double) value).floatValue()); + mViewManager.setStrokeMiterlimit(view, value == null ? 4f : ((Double) value).floatValue()); break; case "vectorEffect": mViewManager.setVectorEffect(view, value == null ? 0 : ((Double) value).intValue()); diff --git a/apple/RNSVGRenderable.mm b/apple/RNSVGRenderable.mm index 239556e08..a46a8fc86 100644 --- a/apple/RNSVGRenderable.mm +++ b/apple/RNSVGRenderable.mm @@ -45,6 +45,7 @@ - (id)init _strokeOpacity = 1; _strokeWidth = [RNSVGLength lengthWithNumber:1]; _fillRule = kRNSVGCGFCRuleNonzero; + _strokeMiterlimit = 4.0; } return self; } @@ -236,7 +237,7 @@ - (void)prepareForRecycle _stroke = nil; _strokeLinecap = kCGLineCapButt; _strokeLinejoin = kCGLineJoinMiter; - _strokeMiterlimit = 0; + _strokeMiterlimit = 4.0; _strokeDasharray = nil; _strokeDashoffset = 0; _vectorEffect = kRNSVGVectorEffectDefault; @@ -585,6 +586,9 @@ - (void)renderLayerTo:(CGContextRef)context rect:(CGRect)rect CGContextSetLineWidth(context, width); CGContextSetLineCap(context, self.strokeLinecap); CGContextSetLineJoin(context, self.strokeLinejoin); + if (self.strokeLinejoin == kCGLineJoinMiter) { + CGContextSetMiterLimit(context, self.strokeMiterlimit); + } NSArray *strokeDasharray = self.strokeDasharray; NSUInteger count = strokeDasharray.count; diff --git a/apps/fabric-example/ios/Podfile.lock b/apps/fabric-example/ios/Podfile.lock index 2fc5a0f18..fb61d269d 100644 --- a/apps/fabric-example/ios/Podfile.lock +++ b/apps/fabric-example/ios/Podfile.lock @@ -1954,7 +1954,7 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - RNSVG (15.12.0): + - RNSVG (15.12.1): - DoubleConversion - glog - hermes-engine @@ -1977,9 +1977,9 @@ PODS: - ReactCodegen - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - RNSVG/common (= 15.12.0) + - RNSVG/common (= 15.12.1) - Yoga - - RNSVG/common (15.12.0): + - RNSVG/common (15.12.1): - DoubleConversion - glog - hermes-engine @@ -2324,7 +2324,7 @@ SPEC CHECKSUMS: RNGestureHandler: 5d8431415d4b8518e86e289e9ad5bb9be78f6dba RNReanimated: 8b24b49fc13fce9a6e1729ccff645a63d2b7a6d1 RNScreens: c5c07a86e4088ce92f0d3854082250dfa9c61f75 - RNSVG: 50819276c95d91ccd8fbe5cfea7e09a416c9beaa + RNSVG: ab2249cc665e5d0b2d30657a766a86c99a649a65 SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 Yoga: c758bfb934100bb4bf9cbaccb52557cee35e8bdf diff --git a/apps/paper-example/ios/Podfile.lock b/apps/paper-example/ios/Podfile.lock index fe6abfacb..89c33edf3 100644 --- a/apps/paper-example/ios/Podfile.lock +++ b/apps/paper-example/ios/Podfile.lock @@ -1645,7 +1645,7 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - RNSVG (15.10.0): + - RNSVG (15.12.1): - React-Core - SocketRocket (0.7.1) - Yoga (0.0.0) @@ -1940,7 +1940,7 @@ SPEC CHECKSUMS: RNGestureHandler: 511250b190a284388f9dd0d2e56c1df76f14cfb8 RNReanimated: 3e6072b3d49d4fc687b8f1ba3022f0fdc0b43969 RNScreens: c7ceced6a8384cb9be5e7a5e88e9e714401fd958 - RNSVG: 58bad41c581b62cac6265c2899f8f943db527159 + RNSVG: 61b5de449d8daa7b75da111990fee37baeb4a6f2 SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 Yoga: f8ec45ce98bba1bc93dd28f2ee37215180e6d2b6 diff --git a/src/fabric/CircleNativeComponent.ts b/src/fabric/CircleNativeComponent.ts index 09ec6df5e..ee83adf70 100644 --- a/src/fabric/CircleNativeComponent.ts +++ b/src/fabric/CircleNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/ClipPathNativeComponent.ts b/src/fabric/ClipPathNativeComponent.ts index d9c79ca4d..55fc2e81d 100644 --- a/src/fabric/ClipPathNativeComponent.ts +++ b/src/fabric/ClipPathNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/EllipseNativeComponent.ts b/src/fabric/EllipseNativeComponent.ts index 4773f8316..9281ad4db 100644 --- a/src/fabric/EllipseNativeComponent.ts +++ b/src/fabric/EllipseNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/ForeignObjectNativeComponent.ts b/src/fabric/ForeignObjectNativeComponent.ts index 2acdb0342..7fede45f8 100644 --- a/src/fabric/ForeignObjectNativeComponent.ts +++ b/src/fabric/ForeignObjectNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/GroupNativeComponent.ts b/src/fabric/GroupNativeComponent.ts index d509b8440..7550b1025 100644 --- a/src/fabric/GroupNativeComponent.ts +++ b/src/fabric/GroupNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/ImageNativeComponent.ts b/src/fabric/ImageNativeComponent.ts index 77226f8c2..9aa137527 100644 --- a/src/fabric/ImageNativeComponent.ts +++ b/src/fabric/ImageNativeComponent.ts @@ -56,7 +56,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/LineNativeComponent.ts b/src/fabric/LineNativeComponent.ts index ab0e45add..bbbaf6005 100644 --- a/src/fabric/LineNativeComponent.ts +++ b/src/fabric/LineNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/MarkerNativeComponent.ts b/src/fabric/MarkerNativeComponent.ts index a258d4571..72e4c2860 100644 --- a/src/fabric/MarkerNativeComponent.ts +++ b/src/fabric/MarkerNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/MaskNativeComponent.ts b/src/fabric/MaskNativeComponent.ts index dac11a35f..ab0886b4e 100644 --- a/src/fabric/MaskNativeComponent.ts +++ b/src/fabric/MaskNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/PathNativeComponent.ts b/src/fabric/PathNativeComponent.ts index 5520ae183..5680897b9 100644 --- a/src/fabric/PathNativeComponent.ts +++ b/src/fabric/PathNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/PatternNativeComponent.ts b/src/fabric/PatternNativeComponent.ts index 014458a78..1f5da2305 100644 --- a/src/fabric/PatternNativeComponent.ts +++ b/src/fabric/PatternNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/RectNativeComponent.ts b/src/fabric/RectNativeComponent.ts index 9d8f37ba0..c61adeb32 100644 --- a/src/fabric/RectNativeComponent.ts +++ b/src/fabric/RectNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/SymbolNativeComponent.ts b/src/fabric/SymbolNativeComponent.ts index dde02a57b..30b49b1f0 100644 --- a/src/fabric/SymbolNativeComponent.ts +++ b/src/fabric/SymbolNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/TSpanNativeComponent.ts b/src/fabric/TSpanNativeComponent.ts index 1e85f40bf..60da42369 100644 --- a/src/fabric/TSpanNativeComponent.ts +++ b/src/fabric/TSpanNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/TextNativeComponent.ts b/src/fabric/TextNativeComponent.ts index 539b228b9..324703913 100644 --- a/src/fabric/TextNativeComponent.ts +++ b/src/fabric/TextNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/TextPathNativeComponent.ts b/src/fabric/TextPathNativeComponent.ts index e6d630766..7a321b517 100644 --- a/src/fabric/TextPathNativeComponent.ts +++ b/src/fabric/TextPathNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string; diff --git a/src/fabric/UseNativeComponent.ts b/src/fabric/UseNativeComponent.ts index e1e01bb53..94265305e 100644 --- a/src/fabric/UseNativeComponent.ts +++ b/src/fabric/UseNativeComponent.ts @@ -43,7 +43,7 @@ interface SvgRenderableCommonProps { strokeLinejoin?: WithDefault; strokeDasharray?: UnsafeMixed | NumberProp>; strokeDashoffset?: Float; - strokeMiterlimit?: Float; + strokeMiterlimit?: WithDefault; vectorEffect?: WithDefault; propList?: ReadonlyArray; filter?: string;