Skip to content

Colota - Android GPS Location tracker

707 B
Raw Blame
const path = require("path")
const { getDefaultConfig, mergeConfig } = require("@react-native/metro-config")

const monorepoRoot = path.resolve(__dirname, "../..")

/**
 * Metro configuration
 * https://reactnative.dev/docs/metro
 *
 * @type {import('@react-native/metro-config').MetroConfig}
 */
const config = {
  watchFolders: [monorepoRoot],
  resolver: {
    nodeModulesPaths: [path.resolve(__dirname, "node_modules"), path.resolve(monorepoRoot, "node_modules")],
    extraNodeModules: {
      react: path.resolve(__dirname, "node_modules/react"),
      "react-native": path.resolve(__dirname, "node_modules/react-native")
    }
  }
}

module.exports = mergeConfig(getDefaultConfig(__dirname), config)