react-native-snackbar-component
Version:
A snackbar component for Android and iOS
21 lines (19 loc) • 611 B
JavaScript
const fs = require('fs');
const path = require('path');
const getDevPaths = require('get-dev-paths');
const projectRoot = __dirname;
module.exports = {
resolver: {
extraNodeModules: {
react: path.resolve(__dirname, 'node_modules/react'),
'react-native': path.resolve(__dirname, 'node_modules/react-native'),
},
},
// Old way
// eslint-disable-next-line max-len
// getProjectRoots: () => Array.from(new Set(getDevPaths(projectRoot).map($ => fs.realpathSync($)))),
// New way
watchFolders: Array.from(
new Set(getDevPaths(projectRoot).map($ => fs.realpathSync($))),
),
};