toastify-react-native
Version:
🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!
23 lines (18 loc) • 609 B
JavaScript
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path');
const projectRoot = __dirname;
const workspaceRoot = path.resolve(projectRoot, '..');
const config = getDefaultConfig(projectRoot);
config.watchFolders = [workspaceRoot];
config.resolver = {
...config.resolver,
nodeModulesPaths: [
path.resolve(projectRoot, 'node_modules'),
path.resolve(workspaceRoot, 'node_modules'),
],
disableHierarchicalLookup: true,
extraNodeModules: new Proxy({}, {
get: (target, name) => path.join(projectRoot, `node_modules/${name}`),
}),
};
module.exports = config;