Skip to content

Commit

Permalink
feat(react): add animation stop (#3998)
Browse files Browse the repository at this point in the history
* feat(react): add animation stop

* feat(react): revert react verison
  • Loading branch information
zealotchen0 authored Aug 20, 2024
1 parent 2b37433 commit 2bbdfab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/hippy-react/src/modules/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,13 @@ class Animation implements Animation {
Bridge.callNative('AnimationModule', 'pauseAnimation', this.animationId);
}

/**
* Stop the running animation
*/
public stop() {
Bridge.callNative('AnimationModule', 'stopAnimation', this.animationId);
}

/**
* Resume execution of paused animation
*/
Expand Down

0 comments on commit 2bbdfab

Please sign in to comment.