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

No Pause/Resume functionality for AnimatedCircularProgress

Open Abdullo-0901 opened this issue 1 year ago • 0 comments

Feature Request: Add Pause and Resume functionality to AnimatedCircularProgress

Use Case:

I am working on a project where I need to control the circular progress animation. It would be very useful if the AnimatedCircularProgress component had built-in pause() and resume() methods, allowing the animation to be paused at any time and resumed from the current state.

Expected Behavior:

  • Add a method like pause() to stop the animation without resetting it.
  • Add a method like resume() to continue the animation from where it was paused.

Current Limitation:

At the moment, I am unable to pause the animation mid-way and resume it later without starting from the beginning again. This feature would be especially useful for scenarios like:

  • User interactions (e.g., a button press to pause and resume the animation).
  • Background tasks or interruptions that require pausing the animation.

Implementing this feature would make the component more versatile and allow for better control over the animation flow in various use cases, such as timers, progress indicators, and interactive UIs.

Thank you for considering this feature request!

Environment:

  • React Native version: 0.76.1
  • react-native-circular-progress version: 1.4.1

Abdullo-0901 avatar Dec 11 '24 08:12 Abdullo-0901