diff --git a/React/CxxBridge/RCTCxxBridge.mm b/React/CxxBridge/RCTCxxBridge.mm index e459e452ff6..3c205b906b7 100644 --- a/React/CxxBridge/RCTCxxBridge.mm +++ b/React/CxxBridge/RCTCxxBridge.mm @@ -310,7 +310,9 @@ struct RCTInstanceCallback : public InstanceCallback { - (void)handleMemoryWarning { - if (!_valid || !_loading) { + // We only want to run garbage collector when the loading is finished + // and the instance is valid. + if (!_valid || _loading) { return; }