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:
Alexey Lang 2016-03-22 09:32:50 -07:00 committed by Facebook Github Bot 4
parent e53a6a2931
commit 030e34959e
1 changed files with 1 additions and 1 deletions

View File

@ -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];