Created
January 17, 2018 12:00
-
-
Save lgandecki/cc1e74803288cae521abea20abb9959a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var blacklist; | |
try { | |
blacklist = require('metro-bundler/src/blacklist'); | |
} catch(e) { | |
blacklist = require('metro/src/blacklist'); | |
} | |
var config = { | |
extraNodeModules: { | |
'react-native': path.resolve(__dirname, 'node_modules/react-native') | |
}, | |
getBlacklistRE() { | |
return blacklist([ | |
]); | |
}, | |
getProjectRoots() { | |
return [ | |
// Keep your project directory. | |
path.resolve(__dirname), | |
// Include your forked package as a new root. | |
]; | |
} | |
}; | |
module.exports = config; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment