-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Animated.loop doesn't work with vectors and "useNativeDriver" set to "true" #23767
Comments
Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety? 👉 Click here if you want to take another look at the Bug Report issue template. |
Still doesn't work on the latest version react-native@0.59.0 |
@jmcartlamy what is your platform? |
We are also facing the same issue. Loop is not working with useNativeDriver |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Still doesn't work on the latest version react-native@0.60.4 @dulmandakh iOS & Android |
I have a similar issue w/ re-used Animated.Value's when looping w/ the native driver. It appears that there is some bug with reseting the internal value when an animation is stopped. When looping manually (via the |
same problem!! any update? |
Just experienced the same on 0.59. Anything planed about this for 0.60^ ? |
The same problem!! |
The same problem, usenativeDriver doesn't work loop |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
🐛 Bug Report
Hello, when I want to loop an animation (
Animated.timing
andAnimated.loop
) with vectors (Animated.ValueXY
) and with optionuseNativeDriver
set totrue
, the animation is performed only once and the loop doesn't work.Work fine without option
useNativeDriver
(or set tofalse
).This issue concerns only
Animated.ValueXY
because the loop works perfectly with single values (Animated.Value
)It seems to me that it works in an older version of react-native (v0.56.0)
To Reproduce
new Animated.ValueXY({ x: 0, y: 0 })
Animated.timing
Animated.View
with styles and link it with the created animationAnimated.loop
Expected Behavior
Animation must loop when I use an
Animated.loop
withAnimated.ValueXY({ x: 0, y: 0 })
Code Example
https://snack.expo.io/ryF7cRjUV
Environment
The text was updated successfully, but these errors were encountered: