diff --git a/React/Modules/RCTDevMenu.m b/React/Modules/RCTDevMenu.m index d7cbc5dc5..0b2fdaa9e 100644 --- a/React/Modules/RCTDevMenu.m +++ b/React/Modules/RCTDevMenu.m @@ -239,11 +239,12 @@ RCT_EXPORT_MODULE() - (NSURL *)packagerURL { NSString *host = [_bridge.bundleURL host]; + NSString *scheme = [_bridge.bundleURL scheme]; if (!host) { - return nil; + host = @"localhost"; + scheme = @"http"; } - NSString *scheme = [_bridge.bundleURL scheme]; NSNumber *port = [_bridge.bundleURL port]; if (!port) { port = @8081; // Packager default port