iOS:fix animate plugin

This commit is contained in:
pengfei.zhou 2020-04-08 15:26:49 +08:00 committed by osborn
parent 5babfb4c9c
commit 277a49ed49

View File

@ -35,9 +35,11 @@ - (void)animateRender:(NSDictionary *)args withPromise:(DoricPromise *)promise {
if (self.doricContext.rootNode.viewId == nil) { if (self.doricContext.rootNode.viewId == nil) {
self.doricContext.rootNode.viewId = viewId; self.doricContext.rootNode.viewId = viewId;
[self.doricContext.rootNode blend:args[@"props"]]; [self.doricContext.rootNode blend:args[@"props"]];
[self.doricContext.rootNode requestLayout];
} else { } else {
DoricViewNode *viewNode = [self.doricContext targetViewNode:viewId]; DoricViewNode *viewNode = [self.doricContext targetViewNode:viewId];
[viewNode blend:args[@"props"]]; [viewNode blend:args[@"props"]];
[viewNode requestLayout];
} }
} }
completion:^(BOOL finished) { completion:^(BOOL finished) {