symlinks on react-native

slava
1 min readJan 21, 2019

React-native not supports symlinks, it is well known issue https://github.com/facebook/metro/issues/1#issuecomment-282799444

But many tools, like lerna(Lerna.js) works on symlinks.

I’ll give you a tip how to use symlinks in react-native >= 0.57

If you want to load another module from outside your project you will facing with problem — metro bundler doesn’t allow to do that.

It is simple way to add external module to your app, just create a file called ‘metro.config.js’ and put it in react-native root directory and do not forgot to set right name of your module instead ‘qb-core’. Then restart your app, everything should work.

--

--