-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetro.config.js
More file actions
26 lines (24 loc) · 796 Bytes
/
metro.config.js
File metadata and controls
26 lines (24 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const { mergeConfig, getDefaultConfig } = require('@react-native/metro-config');
/**
* Metro configuration
* https://reactnative.dev/docs/metro
*
* @type {import('@react-native/metro-config').MetroConfig}
*/
const config = {
resolver: {
extraNodeModules: {
'@screens': `${__dirname}/src/screens`,
'@components': `${__dirname}/src/components`,
'@custom_types': `${__dirname}/src/types`,
'@navigators': `${__dirname}/src/navigators`,
'@app_store': `${__dirname}/src/store`,
'@app_utils': `${__dirname}/src/utils`,
'@styles': `${__dirname}/src/styles`,
'@api': `${__dirname}/src/api`,
'@hooks': `${__dirname}/src/hooks`,
},
},
watchFolders: [__dirname],
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);