-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
withRepeat is flickering on android #6093
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Steps to reproduce and Snack or a link to a repository sections. |
Are you creating the AnimatedPressable out of component ? |
Yes, is anything wrong? |
Hey! circleSize.value = withRepeat(
withSequence(
withTiming(110, { duration: 1000 }),
withTiming(0, { duration: 0 })
),
-1
);
circleOpacity.value = withRepeat(
withSequence(
withTiming(0, { duration: 1000 }),
withTiming(0.8, { duration: 0 })
),
-1
);
} Basically, I add I was trying to reproduce the issue using the latest reanimated version but I cannot see the problem, even if I was using the same code as provided in this issue repro. Maybe upgrading reanimated to the latest version will help you as well with no need to update the implementation. |
Hi! It makes sense. I've faced the same problem. |
@MatiPl01 it doesn't help |
Can you provide a repro? I will take a look and check what is wrong. |
it looks like the error is present when position: absolute and opacity are used. |
Thank you for explanation. I can reproduce the issue but only on Android. Have you tested on iOS as well (and if you tested, have you seen the same issue on iOS)? |
@MatiPl01 ios and web are okay |
Thanks, I will look into that. Thank you for details. |
Description
I'm having a great experience with the animation using
withTiming
, but when I wrap it withwithRepeat
, it causes flickering.Code:
Ghi.Man.hinh.2024-06-10.luc.11.25.20.mov
Steps to reproduce
NA
Snack or a link to a repository
NA
Reanimated version
^3.11.0
React Native version
0.74.1
Platforms
Android
JavaScript runtime
None
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
None
Device
Android emulator
Device model
Pixel_4_API_34 ( android 14 )
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: