Partially revert #1122

This commit is contained in:
Yavor Georgiev 2017-07-06 17:36:09 +02:00
parent 13cd978a87
commit b7775ad9ab
No known key found for this signature in database
GPG Key ID: 83FC145DA0CCA9C3
1 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ void _initializeOnJSThread(JSContextRefExtractor jsContextExtractor) {
__weak __typeof__(self) weakSelf = self;
__weak __typeof__(executor) weakExecutor = executor;
[bridge dispatchBlock:^{
[executor executeBlockOnJavaScriptQueue:^{
__typeof__(self) self = weakSelf;
__typeof__(executor) executor = weakExecutor;
if (!self || !executor) {
@ -331,7 +331,7 @@ void _initializeOnJSThread(JSContextRefExtractor jsContextExtractor) {
_initializeOnJSThread(^ {
return RealmReactGetJSGlobalContextForExecutor(executor, true);
});
} queue:RCTJSThread];
}];
}
}