feat:add reusable in groupnode for iOS

This commit is contained in:
pengfei.zhou
2019-11-16 13:23:11 +08:00
parent e4b729b2fd
commit 1d5b312922
4 changed files with 60 additions and 33 deletions

View File

@@ -211,7 +211,9 @@ - (DoricAsyncResult *)callJSResponse:(NSString *)funcId, ... {
+ (__kindof DoricViewNode *)create:(DoricContext *)context withType:(NSString *)type {
DoricRegistry *registry = context.driver.registry;
Class clz = [registry acquireViewNode:type];
return [(DoricViewNode *) [clz alloc] initWithContext:context];
DoricViewNode *viewNode = [(DoricViewNode *) [clz alloc] initWithContext:context];
viewNode.type = type;
return viewNode;
}
- (void)requestLayout {