mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
fix: currentColor stale value (#2573)
# 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 <jakub.grzywacz@swmansion.com>
This commit is contained in:
@@ -231,6 +231,7 @@ static RNSVGRenderable *_contextElement;
|
||||
_strokeDashArrayData = nil;
|
||||
|
||||
_contextElement = nil;
|
||||
_color = nil;
|
||||
_fill = nil;
|
||||
_stroke = nil;
|
||||
_strokeLinecap = kCGLineCapButt;
|
||||
|
||||
Reference in New Issue
Block a user