iOS:fix animate plugin
This commit is contained in:
parent
5babfb4c9c
commit
277a49ed49
@ -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) {
|
||||||
|
Reference in New Issue
Block a user