react-native/local-cli/link/pollParams.js

10 lines
209 B
JavaScript
Raw Normal View History

var inquirer = require('inquirer');
module.exports = (questions) => new Promise((resolve, reject) => {
if (!questions) {
return resolve({});
}
inquirer.prompt(questions).then(resolve, reject);
});