INNER CODE UNIT · JavaScript

createSwiftEnvironment

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

function createSwiftEnvironment(templateName, templateFolder) {
  const readDirPath = path.join(
    __dirname,
    "..",
    "templates",
    templateFolder,
    "ios-swift"
  );

  const paths = {
    readDirPath,
    writeDirPath: path.join(process.cwd(), "ios")
  };

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…