2019-01-24 05:15:58 -07:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const path = require('path');
|
2018-07-17 06:36:03 -06:00
|
|
|
const blacklist = require('metro').createBlacklist;
|
|
|
|
|
2019-01-24 05:15:58 -07:00
|
|
|
const rootProjectDir = path.resolve(__dirname, '..', '..')
|
|
|
|
|
2018-07-17 06:36:03 -06:00
|
|
|
module.exports = {
|
2019-01-24 05:15:58 -07:00
|
|
|
// Resolve react-native-video from parent directory so we do not have to install react-native-video after each change applied
|
2018-07-17 06:36:03 -06:00
|
|
|
getBlacklistRE: function() {
|
2019-01-24 05:15:58 -07:00
|
|
|
return blacklist([/node_modules\/react-native-video\/.*/, new RegExp(`${rootProjectDir}/node_modules/react-native/.*`)])
|
|
|
|
},
|
|
|
|
getProjectRoots() {
|
|
|
|
return [
|
|
|
|
__dirname,
|
|
|
|
rootProjectDir
|
|
|
|
]
|
2018-07-17 06:36:03 -06:00
|
|
|
}
|
2019-01-24 05:15:58 -07:00
|
|
|
};
|