code: async function generateProject(destinationRoot, newProjectName, options) {
    const pkgJson = require('react-native/package.json');
    const reactVersion = pkgJson.peerDependencies.react;
  
    await PackageManager.setProjectDir(destinationRoot);
    await createProjectFromTemplate(
      destinationRoot,
      newProjectName,
      options.template,
      destinationRoot,
    );
  
    logger.info('Adding required dependencies');
    await PackageManager.install([`react@${reactVersion}`]);
  
    logger.info('Adding required dev dependencies');
    await PackageManager.installDev([
      '@babel/core',
      '@babel/runtime',
      '@react-native-community/eslint-config',
      'eslint',
      'jest',
      'babel-jest',
      'metro-react-native-babel-preset',
      `react-test-renderer@${reactVersion}`,
    ]);
  
    addJestToPackageJson(destinationRoot);
    printRunInstructions(destinationRoot, newProjectName);
  }
docs: Generates a new React Native project based on the template.
  @param Absolute path at which the project folder should be created.
  @param options Command line arguments parsed by minimist.