I have created yarn package with common components, services, utils, etc. for my project. Then I have created index.ts file in src folder, where I've exported all components. Then I've built the package, added to my project. Then if I import a component from the package after starting the app in a real device or in an emulator, it's all OK. But if I import component first and then start app with react-native run-android
(or -ios
), I get a lot of errors Invariant Violation: no callback found with cbID for module<unknown>
in loop:
What am I doing wrong?