INNER CODE UNIT · JavaScript
createObjCEnvironment
peggyrayzis/react-native-create-bridge · src/index.js:183
function createObjCEnvironment(templateName, templateFolder) {
const readDirPath = path.join(
__dirname,
"..",
"templates",
templateFolder,
"ios-objc"
);
const paths = {
readDirPath,
writeDirPath: path.join(process.cwd(), "ios")
};
return getFileNames(readDirPath).then(files =>
readAndWriteFiles(files, paths, { templateName })
);
}