From 1c1ca767828d820ab5cc42f41d8e66901faef8c2 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 3 Dec 2021 15:37:21 +0800 Subject: [PATCH] feat: fix popover view cannot animate --- doric-js/src/native/animate.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doric-js/src/native/animate.ts b/doric-js/src/native/animate.ts index 6cde4b04..d8b79dba 100644 --- a/doric-js/src/native/animate.ts +++ b/doric-js/src/native/animate.ts @@ -41,7 +41,8 @@ export function animate(context: BridgeContext) { for (let map of panel.allHeadViews()) { for (let v of map.values()) { if (v.isDirty()) { - const model_1 = v.toModel() + const model_1 = v.toModel(); + (model_1 as any).duration = args.duration const ret_1 = context.callNative('animate', 'animateRender', model_1) v.clean() return ret_1