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) {
|
||||
self.doricContext.rootNode.viewId = viewId;
|
||||
[self.doricContext.rootNode blend:args[@"props"]];
|
||||
[self.doricContext.rootNode requestLayout];
|
||||
} else {
|
||||
DoricViewNode *viewNode = [self.doricContext targetViewNode:viewId];
|
||||
[viewNode blend:args[@"props"]];
|
||||
[viewNode requestLayout];
|
||||
}
|
||||
}
|
||||
completion:^(BOOL finished) {
|
||||
@ -45,4 +47,4 @@ - (void)animateRender:(NSDictionary *)args withPromise:(DoricPromise *)promise {
|
||||
}];
|
||||
});
|
||||
}
|
||||
@end
|
||||
@end
|
||||
|
Reference in New Issue
Block a user