mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-27 22:54:46 +08:00
Fix runAndroid
Reviewed By: kmagiera, martinbigio Differential Revision: D2565100 fb-gh-sync-id: 3be393fbd164997ebaa7a9b133e6ebb72059a615
This commit is contained in:
committed by
facebook-github-bot-5
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);
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user