[ReactNative] Fix chrome debugger
This commit is contained in:
parent
4402c4c885
commit
65a3da3003
|
@ -1108,7 +1108,8 @@ RCT_BRIDGE_WARN(_invokeAndProcessModule:(NSString *)module method:(NSString *)me
|
||||||
* Register the display link to start sending js calls after everything
|
* Register the display link to start sending js calls after everything
|
||||||
* is setup
|
* is setup
|
||||||
*/
|
*/
|
||||||
[_jsDisplayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
|
NSRunLoop *targetRunLoop = [_javaScriptExecutor isKindOfClass:[RCTContextExecutor class]] ? [NSRunLoop currentRunLoop] : [NSRunLoop mainRunLoop];
|
||||||
|
[_jsDisplayLink addToRunLoop:targetRunLoop forMode:NSRunLoopCommonModes];
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:RCTJavaScriptDidLoadNotification
|
[[NSNotificationCenter defaultCenter] postNotificationName:RCTJavaScriptDidLoadNotification
|
||||||
object:_parentBridge
|
object:_parentBridge
|
||||||
|
|
Loading…
Reference in New Issue