mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Implemented lazy parsing of method signatures to improve TTI
This commit is contained in:
@@ -88,7 +88,7 @@ RCT_NOT_IMPLEMENTED(-init);
|
||||
[self.methods enumerateObjectsUsingBlock:^(RCTModuleMethod *method, NSUInteger idx, __unused BOOL *stop) {
|
||||
methodconfig[method.JSMethodName] = @{
|
||||
@"methodID": @(idx),
|
||||
@"type": method.functionKind == RCTJavaScriptFunctionKindAsync ? @"remoteAsync" : @"remote",
|
||||
@"type": method.functionType == RCTFunctionTypePromise ? @"remoteAsync" : @"remote",
|
||||
};
|
||||
}];
|
||||
config[@"methods"] = [methodconfig copy];
|
||||
|
||||
Reference in New Issue
Block a user