diff --git a/React/Modules/RCTDevMenu.m b/React/Modules/RCTDevMenu.m index fc019ab17ccb7b..58cf5e531b40ba 100644 --- a/React/Modules/RCTDevMenu.m +++ b/React/Modules/RCTDevMenu.m @@ -239,6 +239,9 @@ - (NSURL *)packagerURL NSString *scheme = [_bridge.bundleURL scheme]; NSNumber *port = [_bridge.bundleURL port]; + if (!port) { + port = @8081; // Packager default port + } return [NSURL URLWithString:[NSString stringWithFormat:@"%@://%@:%@/message?role=shell", scheme, host, port]]; }