Fix: "Metro listenting on port undefined"

Summary:
Regression introduced in 2ad34075f1.

Fixes https://github.com/facebook/react-native/issues/18681
Closes https://github.com/facebook/react-native/pull/18722

Differential Revision: D7535684

Pulled By: hramos

fbshipit-source-id: 21bc79091148daba7b668965cd5becaa43117721
This commit is contained in:
Mike Grabowski 2018-04-06 10:36:56 -07:00 committed by Facebook Github Bot
parent c6610577fd
commit 159869d250
1 changed files with 3 additions and 3 deletions

View File

@ -124,10 +124,10 @@ function runOnSimulator(xcodeProject, args, scheme) {
}
}
buildProject(xcodeProject, selectedSimulator.udid, scheme, args.configuration, args.packager, args.verbose)
.then((appName) => resolve(selectedSimulator.udid, appName));
buildProject(xcodeProject, selectedSimulator.udid, scheme, args.configuration, args.packager, args.verbose, args.port)
.then((appName) => resolve({ udid: selectedSimulator.udid, appName }));
})
.then((udid, appName) => {
.then(({udid, appName}) => {
if (!appName) {
appName = scheme;
}