Last active
March 1, 2019 09:30
-
-
Save reggie3/50e86b384eb9573a105c89b640d9f555 to your computer and use it in GitHub Desktop.
rn-cliconfig.js for shared projects
This file contains hidden or 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
const path = require('path'); | |
module.exports = { | |
// For React Native version 0.57 | |
projectRoot: path.resolve(__dirname), | |
// tell the builder to also look in the shared directory for imports | |
watchFolders: [ | |
path.resolve(__dirname, "../shared") | |
] | |
// Prior to React Native verision 0.57 | |
getProjectRoots() { | |
return [ | |
__dirname, | |
path.join(__dirname, 'node_modules'), | |
// tell the builder to also look in the shared directory for imports | |
path.join(__dirname, '../shared'), | |
) | |
]; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Missing comma on line 10 :)