react-native-reanimated icon indicating copy to clipboard operation
react-native-reanimated copied to clipboard

useAnimatedProps doesn't trigger render

Open KennyCallegari opened this issue 1 year ago • 0 comments

Description

I've created this simple example of an animated number, it should go from 0 to 100. Inside the hook useAnimatedProps, the value is correctly updated but the props changing does not trigger the re-rendering.

I am doing something wrong ?

Steps to reproduce

  1. Go to https://snack.expo.dev/@kennyledev/reanimated-animatedprops-not-working
  2. Watch the value going from 0 to 100 in the console
  3. Watch the rendered value staying at 0

Snack or a link to a repository

https://snack.expo.dev/@kennyledev/reanimated-animatedprops-not-working

Reanimated version

3.7.1

React Native version

0.73.4

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

KennyCallegari avatar Mar 08 '24 23:03 KennyCallegari