[ReactNative] Parellelise bridge startup

Summary:
Parallelise the bridge startup so we don't keep waiting for the source to load.
This commit is contained in:
Tadeu Zagallo
2015-08-07 06:42:34 -07:00
parent 3cef3010e6
commit 6cd0709bc0
8 changed files with 315 additions and 235 deletions

View File

@@ -208,7 +208,7 @@ void _RCTLogFormat(
#if RCT_DEBUG // Red box is only available in debug mode
// Log to red box
if (level >= RCTLOG_REDBOX_LEVEL) {
if ([UIApplication sharedApplication] && level >= RCTLOG_REDBOX_LEVEL) {
NSArray *stackSymbols = [NSThread callStackSymbols];
NSMutableArray *stack = [NSMutableArray arrayWithCapacity:(stackSymbols.count - 1)];
[stackSymbols enumerateObjectsUsingBlock:^(NSString *frameSymbols, NSUInteger idx, __unused BOOL *stop) {