react-native/React/CxxBridge
Kevin Gozali 2f33b50f4f Don't attempt to load RCTDevLoadingView lazily
Summary:
There's a very old issue with reload logic: invalidation and resetting up of the bridge could be racing. In this case, we hit a redbox when:
* Chrome debugger is enabled in previous app run, then we launch the app again
* The bridge starts, then immediately reloads itself to connect to Chrome
* On the 2nd setup, the logic to update the green loading bar, with the % indicator for loading off metro, failed to find the DevLoadingView module instance because the bridge is in the middle of invalidating

See https://github.com/facebook/react-native/issues/23235

To test:
Using react-native init from github, do the steps in https://github.com/facebook/react-native/issues/23235, no more redbox. Note that the loading indicator % won't be proper still, but at least it doesn't crash/redbox.

Reviewed By: JoshuaGross

Differential Revision: D14110814

fbshipit-source-id: 835061e50acc6968bffbcc2ddfbe8da79a100df9
2019-02-18 14:50:35 +01:00
..
JSCExecutorFactory.h Make JSCExecutorFactory accessible from outside 2019-01-16 10:47:44 -08:00
JSCExecutorFactory.mm Make JSCExecutorFactory accessible from outside 2019-01-16 10:47:44 -08:00
NSDataBigString.h
NSDataBigString.mm
RCTCxxBridge.mm Don't attempt to load RCTDevLoadingView lazily 2019-02-18 14:50:35 +01:00
RCTCxxBridgeDelegate.h
RCTMessageThread.h
RCTMessageThread.mm
RCTObjcExecutor.h
RCTObjcExecutor.mm