Fix runAndroid
Reviewed By: kmagiera, martinbigio Differential Revision: D2565100 fb-gh-sync-id: 3be393fbd164997ebaa7a9b133e6ebb72059a615
This commit is contained in:
parent
62ac37275f
commit
c771fb3072
|
@ -17,7 +17,7 @@ const isPackagerRunning = require('../util/isPackagerRunning');
|
|||
const Promise = require('promise');
|
||||
|
||||
/**
|
||||
* Starts the app on the Android simulator.
|
||||
* Starts the app on a connected Android emulator or device.
|
||||
*/
|
||||
function runAndroid(argv, config) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
@ -47,7 +47,7 @@ function _runAndroid(argv, config, resolve, reject) {
|
|||
console.log(chalk.bold('Starting JS server...'));
|
||||
startServerInNewWindow();
|
||||
}
|
||||
buildAndRun(args);
|
||||
buildAndRun(args, reject);
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue