From 352c3d97b3017ab91cfca15a8d54fb753edc7ed5 Mon Sep 17 00:00:00 2001 From: Parashuram N Date: Thu, 6 Jul 2017 14:27:32 -0700 Subject: [PATCH] Updating the usage of inquirer API Summary: Inquirer was changed to a later version in https://github.com/facebook/react-native/commit/bada25d158e070fd683a10b8ff9cdcb8d2498b14. However, the API also needed to be updated to use a promise based version. Closes https://github.com/facebook/react-native/pull/14848 Differential Revision: D5375663 Pulled By: javache fbshipit-source-id: 635798a43905301c65db5f63b9cfba1c16964870 --- local-cli/link/pollParams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/link/pollParams.js b/local-cli/link/pollParams.js index 655401479..47b003b31 100644 --- a/local-cli/link/pollParams.js +++ b/local-cli/link/pollParams.js @@ -5,5 +5,5 @@ module.exports = (questions) => new Promise((resolve, reject) => { return resolve({}); } - inquirer.prompt(questions, resolve); + inquirer.prompt(questions).then(resolve, reject); });