This PR fixes running examples within libraries which didn't work before as the metro bundler was confused of multiple modules. The reason for that is that if we link the library via library-name: file:.. within the package.json of the example the node_modules folder of this library get's copied too what causes a multiple modules error at the end if react native tries to run.
This PR is adding a script to the library and executes it after running npm / yarn install within the example. The script looks into the node_modules folder of the example for the library and removes the node_modules within that libraries folder.
This PR fixes running examples within libraries which didn't work before as the metro bundler was confused of multiple modules. The reason for that is that if we link the library via
library-name: file:..
within thepackage.json
of the example thenode_modules
folder of this library get's copied too what causes a multiple modules error at the end if react native tries to run.This PR is adding a script to the library and executes it after running
npm / yarn install
within the example. The script looks into thenode_modules
folder of the example for the library and removes thenode_modules
within that libraries folder.Fixes #69