Tweak Hot Loading gating code
Reviewed By: mmahoney Differential Revision: D2815537 fb-gh-sync-id: d0a4d5c2a831c52cf3be6051a348ae9ba996f545
This commit is contained in:
parent
66158ab2bf
commit
0185df57bd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue