cli
cli copied to clipboard
Allow to configure different node_modules location
Describe the Feature
React Native should allow to define different location for node_modules for package locator instead of always define it as "../node_modules". It's because in our project, we only use some of our screen in React Native (for dynamic content from the server), and our projects are in separate repos for iOS and Android
Something look like
-
root iOS Project (Repo) -- node_modules -- ....
-
root android Project (Repo) -- node_modules -- ....
Therefore, we need a way to tell RN CLI to look for the node_modules packages and generate PackageList.java (also other stuff) in different location. In this case, which was "./node_modules", not "../node_modules"
+1
+1
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
sourceDir option put into react-native.config.js should allow that :)