Tweak Hot Loading gating code

Reviewed By: mmahoney

Differential Revision: D2815537

fb-gh-sync-id: d0a4d5c2a831c52cf3be6051a348ae9ba996f545
This commit is contained in:
Martín Bigio 2016-01-14 19:32:16 -08:00 committed by facebook-github-bot-9
parent 66158ab2bf
commit 0185df57bd
1 changed files with 3 additions and 1 deletions

View File

@ -531,7 +531,9 @@ RCT_EXPORT_METHOD(reload)
- (BOOL)hotLoadingAvailable - (BOOL)hotLoadingAvailable
{ {
return false; return !_bridge.bundleURL.fileURL // Only works when running from server
&& [_bridge.delegate respondsToSelector:@selector(bridgeSupportsHotLoading:)]
&& [_bridge.delegate bridgeSupportsHotLoading:_bridge];
} }
- (void)setHotLoadingEnabled:(BOOL)enabled - (void)setHotLoadingEnabled:(BOOL)enabled