cli icon indicating copy to clipboard operation
cli copied to clipboard

Allow to configure different node_modules location

Open huyvuskedulo opened this issue 3 years ago • 2 comments

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"

huyvuskedulo avatar Jul 07 '22 04:07 huyvuskedulo

+1

whck6 avatar Jul 10 '22 03:07 whck6

+1

abbenyyyyyy avatar Jul 13 '22 08:07 abbenyyyyyy

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.

github-actions[bot] avatar Nov 24 '22 03:11 github-actions[bot]

sourceDir option put into react-native.config.js should allow that :)

adamTrz avatar Nov 24 '22 09:11 adamTrz