@react-native-ohos/lottie-react-native 6.4.3-rc.2 → 6.4.3-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.3-rc.
|
|
9
|
+
"version": "6.4.3-rc.4",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@rnoh/react-native-openharmony": "file:../react_native_openharmony",
|
|
12
|
-
"@ohos/lottie": "2.0.
|
|
12
|
+
"@ohos/lottie": "2.0.29-rc.1"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -85,6 +85,20 @@ export struct LottieAnimationView {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
onStateChanged(propName: string): void {
|
|
88
|
+
if (this.animateItem) {
|
|
89
|
+
this.onSwitchLottie(propName);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// animateItem 为 null 时的延迟处理
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
if (this.animateItem) {
|
|
96
|
+
this.onSwitchLottie(propName);
|
|
97
|
+
}
|
|
98
|
+
}, 100);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
onSwitchLottie(propName: string): void {
|
|
88
102
|
if (this.animateItem == null) {
|
|
89
103
|
return;
|
|
90
104
|
}
|
package/harmony/lottie.har
CHANGED
|
Binary file
|