react-native-video/examples/video-caching/rn-cli.config.js
2019-01-24 13:15:58 +01:00

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
]
}
};