INNER CODE UNIT · JavaScript

init

peggyrayzis/react-native-create-bridge · src/index.js:53

function init() {
  inquirer
    .prompt(promptConfig)
    .then(result => {
      const { environment, bridgeType, templateName, jsPath } = result;

      const templateFolder = bridgeType.length > 1
        ? "combined"
        : bridgeType[0] === "Native Module" ? "modules" : "ui-components";

      const promises = environment.map(env =>
        environmentMap[env](templateName, templateFolder)
      );

      promises.push(createJSEnvironment(templateName, templateFolder, jsPath));

      Promise.all(promises).then(() => {
        console.log(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…