INNER CODE UNIT · JavaScript

createJSEnvironment

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

function createJSEnvironment(templateName, templateFolder, jsPath) {
  const readDirPath = path.join(
    __dirname,
    "..",
    "templates",
    templateFolder,
    "js"
  );

  return mkdir(jsPath).then(() => {
    const paths = {
      readDirPath,
      writeDirPath: jsPath
    };

    return getFileNames(readDirPath).then(files =>
      readAndWriteFiles(files, paths, { templateName })
    );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…