react-native-circular-progress
react-native-circular-progress copied to clipboard
Animation a bit laggy
The circular animation is a bit laggy on iOS, is there any way to use native driver to smooth performances ?
Thanks
Which iOS version? Do you see the issue in the simulator or actual phones?
Tested on real devices (iPhone 6 & 8) using iOS 9.x & 11.x
@Sangrene or @RukaiJohn could you describe in which circumstances and example code this happened? I tested this with iPhone XS and didn't see any lag.
You could also try with latest version as I updated the dependencies in the latest version.
I am here to report that animations are laggy on Android as well. On Pixel XL with Android 9.0. I tried using the native driver but it entirely disables all animations.
I'm also running into this issue on the iOS simulator running 12.1, react native 0.57.5, react 16.6.1 and RNSVG 9.2.4. When I run the example in the sim it animates smoothly.
It's laggy in all phones I tried it on. It doesn't matter if it's modern or old,
Yes I am experiencing the lag too. Is there any way to overcome from this issue?
The animation is lagging a lot! I used it on a real device and if the value is big (1000) for example then the animation will be very slow.
Same for me, lagging hardly, when I try to use native driver it stops playing
I encountered the same problem when trying out react-native-progress. When I quit React Native Debugger the problem went away.
Have you tried react-native-progress-wheel?
@deepslam @matviishyn @sepehr-laal are you still seeing the lag with the latest version? I just recently updated the example app and tested with an iPhone and could not see any issues.
@markusl I ended up using Victory Native. I also never had issues with perf on iOS. my issue was on Android Pixel XL.
@deepslam @matviishyn @sepehr-laal are you still seeing the lag with the latest version? I just recently updated the example app and tested with an iPhone and could not see any issues.
As I mentioned above, it's laggy in dev mode and on some of low-end devices, I just ended up with react-native-progress-wheel
, it doesn't require any dependencies
I'm not sure, but I think you should be able to animate circle arcs of less than 180 degrees with useNativeDriver: true if you rotate the foreground circle using react native's transform style property and apply overflow: hidden to the background circle.