The npm link command doesn’t work because React Native packager doesn’t support symlinks.
After a little research, I discovered that there are two ways to go about it.
- Use haul packager in the example app. Haul supports symlinks, so you can use
npm linkas usual. - Use local dependency via
file:../and then edit files innode_modulesfolder or reinstall every time you make changes.
I found Haul to work great for this use-case and even set-up a little starter project that also includes storybook, which is really helpful if you have many components to switch between.