UNPKG

react-native-fab

Version:

A FAB button component for Android and iOS, customizable, simple and as per material design specs.

21 lines (19 loc) 611 B
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($))), ), };