提交 41c0bf99 编写于 作者: 打打卡夫卡's avatar 打打卡夫卡

使用 替换旧的api

上级 0c991b6d
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
let lottieAnimationView = this.$el let lottieAnimationView = this.$el
if (lottieAnimationView != null && !TextUtils.isEmpty(newPath)) { if (TextUtils.isEmpty(newPath)) {
if (newPath.startsWith("http://") || newPath.startsWith("https://")) { if (newPath.startsWith("http://") || newPath.startsWith("https://")) {
lottieAnimationView.setAnimationFromUrl(newPath) lottieAnimationView.setAnimationFromUrl(newPath)
} else { } else {
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
}, },
NVLoad(): LottieAnimationView { //创建原生View,必须定义返回值类型(Android需要明确知道View类型,需特殊校验) NVLoad(): LottieAnimationView { //创建原生View,必须定义返回值类型(Android需要明确知道View类型,需特殊校验)
//必须实现 //必须实现
let lottieAnimationView = new LottieAnimationView(getContext()) let lottieAnimationView = new LottieAnimationView(this.$androidContext)
return lottieAnimationView return lottieAnimationView
}, },
NVLoaded() { //原生View已创建 NVLoaded() { //原生View已创建
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册