Created
October 16, 2021 19:41
-
-
Save alielmajdaoui/4fe882dc1f3fde0d4ddc05085dda1732 to your computer and use it in GitHub Desktop.
Link Local Dependency in React Native - Metro Config - Without watchFolders option
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
// Absolute path to your package | |
const packagePath = | |
'/Users/mac/my-own-packages/my-awesome-package'; | |
module.exports = { | |
resolver: { | |
nodeModulesPaths: [packagePath], | |
// rest of metro resolver options... | |
}, | |
// rest of metro options... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment