Skip to content

Commit

Permalink
validate style
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqingspring committed Jun 14, 2018
1 parent b7eaa7e commit 56f7284
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import lottie from 'lottie-web';

export default class Lottie extends React.Component {
componentDidMount() {
const {
const {
options,
eventListeners,
} = this.props;

const {
loop,
autoplay,
Expand All @@ -26,8 +26,8 @@ export default class Lottie extends React.Component {
animationData,
rendererSettings,
};
this.options = {...this.options, ...options};

this.options = { ...this.options, ...options };

this.anim = lottie.loadAnimation(this.options);
this.registerEvents(eventListeners);
Expand Down Expand Up @@ -184,6 +184,7 @@ Lottie.propTypes = {
ariaLabel: PropTypes.string,
isClickToPauseDisabled: PropTypes.bool,
title: PropTypes.string,
style: PropTypes.string,
};

Lottie.defaultProps = {
Expand Down

0 comments on commit 56f7284

Please sign in to comment.