@boneframework/native-components 1.0.58 → 1.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,20 @@
1
1
  import React, {useRef} from 'react';
2
- import DotLottie, {} from '@lottiefiles/dotlottie-react';
2
+ import Lottie from 'lottie-react';
3
3
 
4
4
  function Animation({source, style = {}, onAnimationFinish = () => {}, autoPlay = true, loop = true, speed = 1.5}) {
5
-
6
- const lottieRef = useRef<DotLottie>(null);
7
5
 
8
- // @todo: Fix web DotLottie usage
9
- // <DotLottie
10
- // source={source}
11
- // autoPlay={autoPlay}
12
- // loop={loop}
13
- // style={style}
14
- // speed={speed}
15
- // onAnimationFinish={onAnimationFinish}
16
- // ref={lottieRef}
17
- // />
6
+ const lottieRef = useRef<Lottie>(null);
18
7
 
19
- return(<></>
20
-
8
+ return(
9
+ <Lottie
10
+ source={source}
11
+ autoPlay={autoPlay}
12
+ loop={loop}
13
+ style={style}
14
+ speed={speed}
15
+ onAnimationFinish={onAnimationFinish}
16
+ ref={lottieRef}
17
+ />
21
18
  );
22
19
  }
23
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boneframework/native-components",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Expo React Native Components for Bone Framework",
5
5
  "main": "src/Bone.ts",
6
6
  "scripts": {
@@ -29,8 +29,6 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@lottiefiles/dotlottie-react": "^0.13.5",
33
- "@lottiefiles/dotlottie-react-native": "^0.7.1",
34
32
  "@react-native-async-storage/async-storage": "^2.2.0",
35
33
  "@react-native-community/datetimepicker": "^8.5.1",
36
34
  "@react-native-community/netinfo": "^11.4.1",
@@ -49,6 +47,7 @@
49
47
  "expo-secure-store": "^15.0.8",
50
48
  "formik": "^2.4.9",
51
49
  "jwt-decode": "^4.0.0",
50
+ "lottie-react": "^2.4.1",
52
51
  "lottie-react-native": "^7.3.4",
53
52
  "pigeon-maps": "^0.22.1",
54
53
  "react": "19.1.0",