code: async function tryTemplateShorthand(templateName: string) {
    if (templateName.match(FILE_PROTOCOL) || templateName.match(HTTP_PROTOCOL)) {
      return templateName;
    }
    try {
      const reactNativeTemplatePackage = `react-native-template-${templateName}`;
      const response = await fetch(
        `https://registry.yarnpkg.com/${reactNativeTemplatePackage}/latest`,
      );
  
      if (JSON.parse(response).name) {
        return reactNativeTemplatePackage;
      }
    } catch (e) {
      // we expect this to fail when `file://` protocol or regular module is passed
    }
    return templateName;
  }
docs: `init` may be invoked with a shorthand like `--template typescript`
  which should resolve to `react-native-template-typescript` package.
  To support that, we query npm registry if a package like this exists, if not
  we return the original name without a change.