Skip to content

Commit b92078d

Browse files
committed
feat: add playSegments to componentDidMount()
1 parent b11980e commit b92078d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export default class Lottie extends React.Component {
4141
if (this.options.goToAndStop) {
4242
this.goToAndStop();
4343
}
44-
44+
if (this.options.playSegments) {
45+
this.playSegments();
46+
}
4547
this.registerEvents(eventListeners);
4648
}
4749

0 commit comments

Comments
 (0)