Skip to content

Commit

Permalink
feat: Allow custom styles (helps fix chenqingspring#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
SahajR authored Apr 12, 2018
1 parent 7264dab commit d624a51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export default class Lottie extends React.Component {
height: getSize(height),
overflow: 'hidden',
margin: '0 auto',
...this.props.style,
};

const onClickHandler = isClickToPauseDisabled ? () => null : this.handleClickToPause;
Expand Down

0 comments on commit d624a51

Please sign in to comment.