From d49783040d3001a4650754d38e2d959668227813 Mon Sep 17 00:00:00 2001 From: Boaz Arad Date: Mon, 16 Dec 2024 13:18:51 +0200 Subject: [PATCH] fix: currentColor stale value (#2573) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Summary This is another fix for issue https://github.com/software-mansion/react-native-svg/issues/2566 that also resets the color on prepareForRecycle (in the same manner of this fix https://github.com/software-mansion/react-native-svg/pull/2570). I also don't have a sandboxed reproduce, but was able to verify the fix on my company's code which I unfortunately can't share. ## Compatibility OS | Implemented -- | -- iOS | ✅ MacOS | ✅ Co-authored-by: Jakub Grzywacz --- apple/RNSVGRenderable.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/apple/RNSVGRenderable.mm b/apple/RNSVGRenderable.mm index a728457a..ac9412c3 100644 --- a/apple/RNSVGRenderable.mm +++ b/apple/RNSVGRenderable.mm @@ -231,6 +231,7 @@ static RNSVGRenderable *_contextElement; _strokeDashArrayData = nil; _contextElement = nil; + _color = nil; _fill = nil; _stroke = nil; _strokeLinecap = kCGLineCapButt;