Skip to content

interpolateColor crash on useAnimatedProps stroke Path  #3775

@page403

Description

@page403

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs reviewIssue is ready to be reviewed by a maintainerPlatform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a snippet of code, snack or repo is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions