mirror of
https://github.com/zhigang1992/react-native-reanimated.git
synced 2026-06-14 18:09:30 +08:00
Inspired by: https://github.com/callstack/react-native-paper/tree/master/example and https://blog.callstack.io/adding-an-example-app-to-your-react-native-library-d23b9741a19c cc: @satya164 😻, thanks!
16 lines
418 B
JavaScript
16 lines
418 B
JavaScript
const path = require('path');
|
|
const blacklist = require('metro/src/blacklist');
|
|
const glob = require('glob-to-regexp');
|
|
|
|
module.exports = {
|
|
getProjectRoots() {
|
|
return [__dirname, path.resolve(__dirname, '..')];
|
|
},
|
|
getProvidesModuleNodeModules() {
|
|
return ['react-native', 'react', 'fbjs'];
|
|
},
|
|
getBlacklistRE() {
|
|
return blacklist([glob(`${path.resolve(__dirname, '..')}/node_modules/*`)]);
|
|
},
|
|
};
|