react-native-reanimated
react-native-reanimated copied to clipboard
useAnimatedProps doesn't trigger render
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
- Go to https://snack.expo.dev/@kennyledev/reanimated-animatedprops-not-working
- Watch the value going from 0 to 100 in the console
- 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