From 094a0936b9df383a6b23be4d30a76c582bcecd45 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 3 Dec 2021 16:24:21 +0800 Subject: [PATCH] iOS: fix animate won't work on popovered view --- doric-iOS/Pod/Classes/Plugin/DoricAnimatePlugin.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doric-iOS/Pod/Classes/Plugin/DoricAnimatePlugin.m b/doric-iOS/Pod/Classes/Plugin/DoricAnimatePlugin.m index f5db7cef..2bdb5629 100644 --- a/doric-iOS/Pod/Classes/Plugin/DoricAnimatePlugin.m +++ b/doric-iOS/Pod/Classes/Plugin/DoricAnimatePlugin.m @@ -44,6 +44,9 @@ - (void)animateRender:(NSDictionary *)args withPromise:(DoricPromise *)promise { } else { DoricViewNode *viewNode = [self.doricContext targetViewNode:viewId]; [viewNode blend:props]; + if(![viewNode isKindOfClass:DoricRootNode.class]){ + [viewNode.view.doricLayout apply]; + } [viewNode requestLayout]; } }