react-lottie
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="0.1.1"></a> | ||
## [0.1.1](https://github.com/chenqingspring/react-lottie/compare/v0.1.0...v0.1.1) (2017-07-07) | ||
<a name="0.1.0"></a> | ||
@@ -7,0 +12,0 @@ # [0.1.0](https://github.com/chenqingspring/react-lottie/compare/v0.0.8...v0.1.0) (2017-06-27) |
@@ -69,3 +69,4 @@ 'use strict'; | ||
autoplay: this.props.options.autoplay !== false, | ||
animationData: this.props.options.animationData | ||
animationData: this.props.options.animationData, | ||
rendererSettings: this.props.options.rendererSettings | ||
}; | ||
@@ -72,0 +73,0 @@ this.anim = _bodymovin2.default.loadAnimation(this.options); |
{ | ||
"name": "react-lottie", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "lottie animation view for React", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -54,3 +54,11 @@ # Lottie Animation View for React ([Angular](https://github.com/chenqingspring/ng-lottie), [Vue](https://github.com/chenqingspring/vue-lottie)) | ||
const defaultOptions = {animationData: animationData}; | ||
const defaultOptions = { | ||
loop: true, | ||
autoplay: true, | ||
animationData: animationData, | ||
rendererSettings: { | ||
preserveAspectRatio: xMidYMid slice | ||
} | ||
}; | ||
return <div> | ||
@@ -57,0 +65,0 @@ <Lottie options={defaultOptions} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
255639
5668
93
0