mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-05 22:47:48 +08:00
Tweak Hot Loading gating code
Reviewed By: mmahoney Differential Revision: D2815537 fb-gh-sync-id: d0a4d5c2a831c52cf3be6051a348ae9ba996f545
This commit is contained in:
committed by
facebook-github-bot-9
parent
66158ab2bf
commit
0185df57bd
@@ -531,7 +531,9 @@ RCT_EXPORT_METHOD(reload)
|
||||
|
||||
- (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
|
||||
|
||||
Reference in New Issue
Block a user