Skip to content

Commit

Permalink
Add SVG color properties to list of color attributes to parse (#6567)
Browse files Browse the repository at this point in the history
## Summary

This PR will significantly enhance the developer experience when
animating SVGs, as with these changes, the `SVGAdapter` is no longer
required (at least for animating **colors**). It's related to the
following PR:
software-mansion/react-native-svg#2471

## Test plan

At this point, the changes will not impact the current behavior and need
to be tested within the `react-native-svg` repository until the release.
Once the RNSVG release is out, I will add an example to the Reanimated
repository.
  • Loading branch information
jakex7 authored Oct 3, 2024
1 parent ea6d7de commit e20b87c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-native-reanimated/src/Colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ export const ColorProperties = makeShareable([
'tintColor',
'textShadowColor',
'overlayColor',
// SVG color properties
'fill',
'floodColor',
'lightingColor',
'stopColor',
'stroke',
]);

// // ts-prune-ignore-next Exported for the purpose of tests only
Expand Down

0 comments on commit e20b87c

Please sign in to comment.