I am developing a button ui package for react native. I try to build an example project to test this button. The directory structure is as follows:
my-button
Ran into the same problem. While I could not make npm link
work as it should, I worked around it by installing the local package in the project folder
npm install ../ --save
This will install the package like a regular package but from the local folder.
The downside is that the changes you make on the package will not be reflected. You will have to npm install
after every change.