Gate Hot Loading

Summary:
public

Until we support this fature on OSS, don't show the menu option.

Reviewed By: vjeux

Differential Revision: D2791198

fb-gh-sync-id: 11b66d467c1ab784bbf549b893d0a3abd69e2741
This commit is contained in:
Martín Bigio
2015-12-28 16:43:22 -08:00
committed by facebook-github-bot-6
parent 4ffb241647
commit e43e2146d9
3 changed files with 14 additions and 1 deletions

View File

@@ -318,7 +318,10 @@ static void RCTInstallHotLoading(RCTBridge *bridge, RCTJSCExecutor *executor)
};
RCTInstallJSCProfiler(_bridge, strongSelf->_context.ctx);
RCTInstallHotLoading(_bridge, strongSelf);
if ([self.bridge.delegate respondsToSelector:@selector(isHotLoadingEnabled)] && [self.bridge.delegate isHotLoadingEnabled]) {
RCTInstallHotLoading(_bridge, strongSelf);
}
for (NSString *event in @[RCTProfileDidStartProfiling, RCTProfileDidEndProfiling]) {
[[NSNotificationCenter defaultCenter] addObserver:strongSelf