Hi!
Can you suggest any solutions for this?
I'm trying to build 2 react-native apps with shared codebase and stuck on components import.
If i import any jsx, this happens


But if there is no jsx, it works...



I assume that the problem lies in babel/jsx/compiling process...
ENV
"@haul-bundler/core": "^0.17.0",
"@haul-bundler/cli": "^0.17.0",
"react-native": "0.61.5",
It's very odd to be importing a module from different package in monorepo with relative path that goes outside of the RN app package. I suggest to setup your project in a way that treats shared as a dependency and you import it like a node_module dependency.
@zamotany you right. Moreover you should import all your native elements from the single point, because they all connected through the react-native bridge. I forgot about that.
It is just impossible to import 'view' for example from another react-native package, event if they are the same version. Does not matter which bundler were used.
This is not an issue at all, just my misunderstanding of how RN works.