We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3aed5 commit 386694cCopy full SHA for 386694c
src/index.js
@@ -32,6 +32,22 @@ class Animation extends PureComponent {
32
33
setAnimationDOMNode = ref => (this.animationDOMNode = ReactDOM.findDOMNode(ref));
34
35
+ play = (...frames) => {
36
+ if (!this.anim) {
37
+ return
38
+ }
39
+
40
+ this.anim.playSegments(frames, true)
41
42
43
+ reset = () => {
44
45
46
47
48
+ this.anim.stop()
49
50
51
render() {
52
return <View style={this.props.style} ref={this.setAnimationDOMNode} />;
53
}
0 commit comments