Skip to content

Commit

Permalink
fix: currentColor stale value (#2573)
Browse files Browse the repository at this point in the history
# Summary
This is another fix for issue
#2566 that
also resets the color on prepareForRecycle (in the same manner of this
fix #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 <[email protected]>
  • Loading branch information
boazarad88 and jakex7 authored Dec 16, 2024
1 parent 596ba83 commit d497830
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apple/RNSVGRenderable.mm
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ - (void)prepareForRecycle
_strokeDashArrayData = nil;

_contextElement = nil;
_color = nil;
_fill = nil;
_stroke = nil;
_strokeLinecap = kCGLineCapButt;
Expand Down

0 comments on commit d497830

Please sign in to comment.