@react-native-ohos/lottie-react-native 6.4.2-rc.2 → 6.4.2-rc.4

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.
@@ -6,9 +6,9 @@
6
6
  "name": "@react-native-ohos/lottie-react-native",
7
7
  "description": "Native part of lottie-react-native",
8
8
  "main": "index.ets",
9
- "version": "6.4.2-rc.2",
9
+ "version": "6.4.2-rc.4",
10
10
  "dependencies": {
11
11
  "@rnoh/react-native-openharmony": "file:../react_native_openharmony",
12
- "@ohos/lottie": "2.0.19"
12
+ "@ohos/lottie": "2.0.25-rc.1"
13
13
  }
14
14
  }
@@ -216,6 +216,7 @@ export struct LottieAnimationView {
216
216
  if (this.animateItem.isPaused === false) {
217
217
  this.onAnimationEnd();
218
218
  }
219
+ this.animateItem?.destroy();
219
220
  lottie.destroy(this.animateKey);
220
221
  this.animateItem = null;
221
222
  }
@@ -246,6 +247,9 @@ export struct LottieAnimationView {
246
247
  this.animateItem?.addEventListener(LOTTLE_STRING.data_failed, () => {
247
248
  this.eventEmitter!.emit("animationFailure", {error: 'data_failed'});
248
249
  })
250
+ this.animateItem?.addEventListener('error', () => {
251
+ this.eventEmitter!.emit("animationFailure", {error: 'data_failed'});
252
+ })
249
253
  }
250
254
 
251
255
  handleColorFilters(): void {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/lottie-react-native",
3
- "version": "6.4.2-rc.2",
3
+ "version": "6.4.2-rc.4",
4
4
  "description": "c-api-foundation",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",