text: /* eslint-disable */
  
  const path = require('path');
  
  const extraNodeModules = {
    'react-native': path.resolve(
      __dirname,
      'node_modules/react-native',
    ),
    react: path.resolve(__dirname, 'node_modules/react'),
    '@letapp/react-native-calendar': path.resolve(
      __dirname,
      'node_modules/@letapp/react-native-calendar',
    ),
  };
  const blacklistRegexes = [
    /@letapp\/react-native-calendar[/\\]node_modules[/\\]react-native[/\\].*/,
  ];
  const watchFolders = [path.resolve('../')];
  
  const metroVersion = require('metro/package.json').version;
  
  const metroVersionComponents = metroVersion.match(
    /^(\d+)\.(\d+)\.(\d+)/,
  );
  if (
    metroVersionComponents[1] === '0' &&
    parseInt(metroVersionComponents[2], 10) >= 43
  ) {
    module.exports = {
      resolver: {
        extraNodeModules,
        blacklistRE: require('metro-config/src/defaults/blacklist')(
          blacklistRegexes,
        ),
      },
      watchFolders,
    };
  } else {
    module.exports = {
      extraNodeModules,
      getBlacklistRE: () =>
        require('metro/src/blacklist')(blacklistRegexes),
      getProjectRoots: () =>
        [path.resolve(__dirname)].concat(watchFolders),
    };
  }