Correctly test for HMR parameter in the bundle URL
Summary: Closes https://github.com/facebook/react-native/pull/7525 Differential Revision: D3292314 Pulled By: javache fbshipit-source-id: 04090f7f1253e055278a6774f7e135833ae3d6f6
This commit is contained in:
Родитель
85d2086321
Коммит
36b085422d
|
@ -474,7 +474,7 @@ RCT_EXTERN NSArray<Class> *RCTGetModuleClasses(void);
|
|||
|
||||
#if RCT_DEV
|
||||
|
||||
if (RCTGetURLQueryParam(self.bundleURL, @"hot")) {
|
||||
if ([RCTGetURLQueryParam(self.bundleURL, @"hot") boolValue]) {
|
||||
NSString *path = [self.bundleURL.path substringFromIndex:1]; // strip initial slash
|
||||
NSString *host = self.bundleURL.host;
|
||||
NSNumber *port = self.bundleURL.port;
|
||||
|
|
Загрузка…
Ссылка в новой задаче