code: function init(projectDir, argsOrName) {
    console.log('Setting up new React Native app in ' + projectDir);
    const env = yeoman.createEnv(
      undefined,
      undefined,
      new CreateSuppressingTerminalAdapter()
    );
  
    env.register(
      require.resolve(path.join(__dirname, '../generator')),
      'react:app'
    );
  
    // argv is for instance
    // ['node', 'react-native', 'init', 'AwesomeApp', '--verbose']
    // args should be ['AwesomeApp', '--verbose']
    const args = Array.isArray(argsOrName)
      ? argsOrName
      : [argsOrName].concat(process.argv.slice(4));
  
    const generator = env.create('react:app', {args: args});
    generator.destinationRoot(projectDir);
    generator.run();
  }
docs: Creates the template for a React Native project given the provided
  parameters:
  - projectDir: templates will be copied here.
  - argsOrName: project name or full list of custom arguments to pass to the
  generator.