react-native-progress icon indicating copy to clipboard operation
react-native-progress copied to clipboard

Beginning of CircleSnail animation is choppy

Open zeckdude opened this issue 7 years ago • 4 comments

Hi there,

Great work on this package. We're using the CircleSnail component. The beginning of the animation is choppy and at some point it becomes smooth. Unfortunately, we're playing the animation for only showing the component for 1.5 seconds and during that time, the animation never gets smooth. Is there anything we can do to fix this issue?

Here's my code:

<CircleSnail
  direction="clockwise"
  duration={500}
  spinDuration={2000}
  color={Colors.white}
  size={27}
  indeterminate
  thickness={2}
/>

This is an animated gif of the 1.5 second spinner:

For comparison, I saved an animated gif of the 10 second spinner with the choppiness at the beginning and then getting smooth after about 1.5 second:

zeckdude avatar Aug 29 '18 15:08 zeckdude

I figured out the issue. I have BE requests running the background which slow down the animation. Still not sure how to solve it though.

zeckdude avatar Aug 29 '18 17:08 zeckdude

@zeckdude Hello! Did you solve this?

kesha-antonov avatar Oct 25 '18 18:10 kesha-antonov

No :(

It's still slow. I tried to use shouldComponentUpdate to limit the amount of re-renders, but it's still choppy.

zeckdude avatar Nov 01 '18 17:11 zeckdude

adding key={1} to View that wrapper of CircleSnail, this stop reRender.

ddthuan87 avatar Apr 26 '19 11:04 ddthuan87