react-native v0.48.4 is tested working
- on other-project, run
npm link
- on main-project, run
npm link other-project
- add file
rn-cli-config.js
to main-project
var path = require('path');
var blacklist = require('metro-bundler/src/blacklist');
var config = {
extraNodeModules: {
'react-native': path.resolve(__dirname, 'node_modules/react-native')
},
getBlacklistRE() {
return blacklist([
// regex version of absolute path of other-project's node_modules react-native path
/Users[/\\]mike[/\\]projects[/\\]other-project[/\\]node_modules[/\\]react-native[/\\].*/
]);
},
getProjectRoots() {
return [
// Keep your project directory.
path.resolve(__dirname),
// absolute path of other project path
path.resolve('/Users/mike/projects/other-project')
];
}
};
module.exports = config;
- react-native start --config ../../../../rn-cli-config.js