Remove gating code for HMR on iOS
Reviewed By: javache Differential Revision: D2977197 fb-gh-sync-id: 001447ad0b0275f5de6f6454aa8cd0b1c34ce3d8 shipit-source-id: 001447ad0b0275f5de6f6454aa8cd0b1c34ce3d8
This commit is contained in:
parent
b2b41da37f
commit
4b98511a3e
|
@ -47,10 +47,4 @@ typedef void (^RCTSourceLoadBlock)(NSError *error, NSData *source);
|
|||
- (void)loadSourceForBridge:(RCTBridge *)bridge
|
||||
withBlock:(RCTSourceLoadBlock)loadCallback;
|
||||
|
||||
/**
|
||||
* Indicates whether Hot Loading is supported or not.
|
||||
* Note: this method will be removed soon, once Hot Loading is supported on OSS.
|
||||
*/
|
||||
- (BOOL)bridgeSupportsHotLoading:(RCTBridge *)bridge;
|
||||
|
||||
@end
|
||||
|
|
|
@ -581,9 +581,7 @@ RCT_EXPORT_METHOD(reload)
|
|||
|
||||
- (BOOL)hotLoadingAvailable
|
||||
{
|
||||
return !_bridge.bundleURL.fileURL // Only works when running from server
|
||||
&& [_bridge.delegate respondsToSelector:@selector(bridgeSupportsHotLoading:)]
|
||||
&& [_bridge.delegate bridgeSupportsHotLoading:_bridge];
|
||||
return !_bridge.bundleURL.fileURL; // Only works when running from server
|
||||
}
|
||||
|
||||
- (void)setHotLoadingEnabled:(BOOL)enabled
|
||||
|
|
Loading…
Reference in New Issue