20 lines
553 B
JavaScript
20 lines
553 B
JavaScript
"use strict";
|
|
|
|
const path = require('path');
|
|
const blacklist = require('metro').createBlacklist;
|
|
|
|
const rootProjectDir = path.resolve(__dirname, '..', '..')
|
|
|
|
module.exports = {
|
|
// Resolve react-native-video from parent directory so we do not have to install react-native-video after each change applied
|
|
getBlacklistRE: function() {
|
|
return blacklist([/node_modules\/react-native-video\/.*/, new RegExp(`${rootProjectDir}/node_modules/react-native/.*`)])
|
|
},
|
|
getProjectRoots() {
|
|
return [
|
|
__dirname,
|
|
rootProjectDir
|
|
]
|
|
}
|
|
};
|