This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
[Android] Android SDK custom WXComponent, there are multiple properties defined using @WXComponentProp, how do I know when all properties are passed from JS to native? #2833
Labels
Weex Android SDK custom WXComponent, with multiple properties using @WXComponentProp
Definition, how do I know when all properties are passed from JS to native? My second property needs to depend on the first property.
Custom WXComponent code is as follows
public class WeexLottieAnimationView extends WXComponent<LottieAnimationView> {
public Context mContext;
private LottieTask<LottieComposition> mLottieResult;
private boolean mLoop; public WeexLottieAnimationView(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData) { super(instance, parent, basicComponentData); mContext = instance.getContext(); }
Weex code is as follows:
<template>
<lottie class="lottie" :url="url" :loop=true></lottie>
</template>
<script>
export default {
data () {
return {
url: "https://kano.guahao.cn/aEr123600560",
}
}
}
</script>
<style scoped>
.lottie {
width: 750px;
height: 458px;
}
</style>
My url property callback method relies on the loop property. I want the url property callback method to be executed after the loop property callback method。
The text was updated successfully, but these errors were encountered: