-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetro.config.js
27 lines (25 loc) · 968 Bytes
/
metro.config.js
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
27
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
const path = require('path');
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {
resolve: {
extraNodeModules: {
'@components': path.resolve(__dirname, 'src/components/'),
'@screens': path.resolve(__dirname, 'src/screens/'),
'@assets': path.resolve(__dirname, 'src/assets/'),
'@utils': path.resolve(__dirname, 'src/utils/'),
'@constants': path.resolve(__dirname, 'src/constants/'),
'@hooks': path.resolve(__dirname, 'src/hooks/'),
'@navigations': path.resolve(__dirname, 'src/navigations/'),
'@types': path.resolve(__dirname, 'src/types/'),
'@apis': path.resolve(__dirname, 'src/apis/'),
'@store': path.resolve(__dirname, 'src/store/'),
},
},
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);