-
-
Notifications
You must be signed in to change notification settings - Fork 944
Expand file tree
/
Copy pathmetro.config.js
More file actions
21 lines (16 loc) · 765 Bytes
/
metro.config.js
File metadata and controls
21 lines (16 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
const path = require('node:path');
const {
wrapWithReanimatedMetroConfig,
} = require('react-native-reanimated/metro-config');
// Find the project and workspace directories
const projectRoot = __dirname;
// This can be replaced with `find-yarn-workspace-root`
const workspaceRoot = path.resolve(projectRoot, '..');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
config.watchFolders = [workspaceRoot];
config.resolver.nodeModulesPaths = [path.resolve(projectRoot, 'node_modules')];
config.resolver.disableHierarchicalLookup = true;
module.exports = wrapWithReanimatedMetroConfig(config);