How to use folder as local npm package
Issue #657
Add library folder src/library
1 | src |
Declare package.json in library
folder
1 | { |
Declare library as dependency in root package.json
1 | "dependencies": { |
Now import like normal, for example in src/screens/Home/index.js
1 | import res from 'library/res' |