Skip to content

Commit feeaee9

Browse files
morellanMinishlink
authored andcommitted
Upgrade bodymovin to lottie-web (#4)
1 parent f755e41 commit feeaee9

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
"react-native-web": "*"
5656
},
5757
"dependencies": {
58-
"bodymovin": "^4.12.3"
58+
"lottie-web": "^5.4.4"
5959
}
6060
}

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { PureComponent } from 'react';
22
import ReactDOM from 'react-dom';
33
import { View } from 'react-native';
4-
import bodymovin from 'bodymovin';
4+
import lottie from 'lottie-web';
55

66
class Animation extends PureComponent {
77
animationDOMNode = null;
@@ -21,7 +21,7 @@ class Animation extends PureComponent {
2121
this.anim.destroy();
2222
}
2323

24-
this.anim = bodymovin.loadAnimation({
24+
this.anim = lottie.loadAnimation({
2525
container: this.animationDOMNode,
2626
animationData: props.source,
2727
renderer: 'svg',

yarn.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,10 +783,6 @@ bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0:
783783
version "4.11.8"
784784
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f"
785785

786-
bodymovin@^4.12.3:
787-
version "4.12.3"
788-
resolved "https://registry.yarnpkg.com/bodymovin/-/bodymovin-4.12.3.tgz#c09c7fb29623088691e38c5f43ae3170f1dd199e"
789-
790786
boolbase@~1.0.0:
791787
version "1.0.0"
792788
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
@@ -2432,6 +2428,11 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1:
24322428
dependencies:
24332429
js-tokens "^3.0.0"
24342430

2431+
lottie-web@^5.4.4:
2432+
version "5.4.4"
2433+
resolved "https://registry.yarnpkg.com/lottie-web/-/lottie-web-5.4.4.tgz#722ab69d5fcd4a28fa78c36999544b77701bc791"
2434+
integrity sha512-jq43DwoDSdLfjWitgIY5erp4iUE3oJ13H3BQ/q/o8wl0hD9IPD/sfetUtauJM+Lfj/VK/3VeoJOA/nGxsstkkA==
2435+
24352436
lru-cache@^4.0.1:
24362437
version "4.1.1"
24372438
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55"

0 commit comments

Comments
 (0)