Don't schedule script execution on the main thread
Reviewed By: martinbigio Differential Revision: D3069375 fb-gh-sync-id: baa9e4217957c82eb0bba05a8e93527476084a3b shipit-source-id: baa9e4217957c82eb0bba05a8e93527476084a3b
This commit is contained in:
parent
e53a6a2931
commit
030e34959e
|
@ -162,7 +162,7 @@ RCT_EXTERN NSArray<Class> *RCTGetModuleClasses(void);
|
|||
});
|
||||
});
|
||||
|
||||
dispatch_group_notify(initModulesAndLoadSource, dispatch_get_main_queue(), ^{
|
||||
dispatch_group_notify(initModulesAndLoadSource, bridgeQueue, ^{
|
||||
RCTBatchedBridge *strongSelf = weakSelf;
|
||||
if (sourceCode && strongSelf.loading) {
|
||||
[strongSelf executeSourceCode:sourceCode];
|
||||
|
|
Loading…
Reference in New Issue