Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-lottie

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lottie - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

<a name="0.0.6"></a>
## [0.0.6](https://github.com/chenqingspring/react-lottie/compare/v0.0.5...v0.0.6) (2017-04-22)
<a name="0.0.5"></a>

@@ -7,0 +12,0 @@ ## [0.0.5](https://github.com/chenqingspring/react-lottie/compare/v0.0.4...v0.0.5) (2017-04-22)

24

dist/index.js

@@ -67,4 +67,19 @@ 'use strict';

};
_bodymovin2.default.loadAnimation(this.options);
this.amin = _bodymovin2.default.loadAnimation(this.options);
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
this.props.isStopped ? this.stop() : this.play();
}
}, {
key: 'stop',
value: function stop() {
this.amin.stop();
}
}, {
key: 'play',
value: function play() {
this.amin.play();
}
}]);

@@ -80,3 +95,8 @@ return Lottie;

height: _react2.default.PropTypes.number,
width: _react2.default.PropTypes.number
width: _react2.default.PropTypes.number,
isStopped: _react2.default.PropTypes.bool
};
Lottie.defaultProps = {
isStopped: false
};

5

package.json
{
"name": "react-lottie",
"version": "0.0.5",
"version": "0.0.6",
"description": "lottie animation view for React",

@@ -19,3 +19,4 @@ "repository": {

"storybook": "start-storybook -p 9010",
"publish-storybook": "bash .scripts/publish_storybook.sh"
"publish-storybook": "bash .scripts/publish_storybook.sh",
"postpublish": "npm run publish-storybook"
},

@@ -22,0 +23,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc