When using the event.contentOffset.y from useAnimatedScrollHandler in a Animated.ScrollView to make the view sticky at the top, the view is shaking instead of just being there. This behaviour started to happen with 0.76.0 and the new architecture enabled. When I disable the new architecture, the behaviour returns to normal.
In order to test if my implementation has some weird things, I created a brand new project with the react native community cli on RN 0.76.2, new arch enabled.
Description
When using the
event.contentOffset.y
fromuseAnimatedScrollHandler
in aAnimated.ScrollView
to make the view sticky at the top, the view is shaking instead of just being there. This behaviour started to happen with 0.76.0 and the new architecture enabled. When I disable the new architecture, the behaviour returns to normal.In order to test if my implementation has some weird things, I created a brand new project with the react native community cli on RN 0.76.2, new arch enabled.
This is all the code from
App.tsx
https://github.com/user-attachments/assets/9ea43cbe-b9a7-46f3-a66c-19486c518dda
Steps to reproduce
useAnimatedScrollHandler
Snack or a link to a repository
https://github.com/fedpre/reanimated-shaking-test
Reanimated version
3.16.1
React Native version
0.76.2
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
Fabric (New Architecture)
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes