-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android - Animated.event useNativeDriver:true sets incorrect translate position when moving fast #50496
Comments
I tried it on ios there is no issue. |
I looked the value using |
I narrowed it down to: |
When I looked into DiffClampAnimatedNode.kt file I noticed |
@react-native-bot why are you ignoring me :( |
I don't have an exact answer for this one. I believe this is related to an issue we had with Animated + transforms which is still unresolved. @cipolleschi do you have more context or a issue number to link here? |
Description
I have 2 transform translateY animation. When the useNativeDriver:false, there is no issue except performance. I can see the animation moves couple frames behind from native animation. When the useNativeDriver:true, while moving fast the component jumps around (usually to final position if there were no distruption to moementum scroll)
Steps to reproduce
npx expo run:android --device
while useNativeDriver: trueReact Native Version
0.77.2
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@kocburak/usenativedriverbug
Screenshots and Videos
Screen_Recording_20250404_190621.mp4
The text was updated successfully, but these errors were encountered: