feat:add reusable in groupnode for iOS
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user