-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
interpolateColor crash on useAnimatedProps stroke Path #3775
Copy link
Copy link
Closed
Labels
Needs reviewIssue is ready to be reviewed by a maintainerIssue is ready to be reviewed by a maintainerPlatform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snippet of code, snack or repo is providedA reproduction with a snippet of code, snack or repo is provided
Metadata
Metadata
Assignees
Labels
Needs reviewIssue is ready to be reviewed by a maintainerIssue is ready to be reviewed by a maintainerPlatform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snippet of code, snack or repo is providedA reproduction with a snippet of code, snack or repo is provided
Description
Even when it just only
const pathAnimatedProps = useAnimatedProps(() => ({ stroke: interpolateColor(progress.value, [0, 1], ['#2d235e', '#d058b0']), }));saving it just crashing.
but the color of the first value of inputRange is visible.
Steps to reproduce
Trying to make <Path props changing the color using useAnimatedProps.
the d prop of my path just work.
but the color make the app crash.
Full Code Here
Snack or a link to a repository
https://snack.expo.dev/-3Auk0tH0
Reanimated version
2.12.0
React Native version
0.70.4
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
No response
Build type
Debug mode
Device
Real device
Device model
LeEco x52x
Acknowledgements
Yes