Fork me on GitHub
#shadow-cljs
<
2021-08-10
>
rosado16:08:26

I'm trying to build a react-native app for 3 targets: iOS, Android and web. So far I can only get those three targets when I have two separate projects, one including react-native, the other react-native-web as dependency (and some symlinking). Ideally I'd just have one project and one shadow-cljs.edn file but not sure how react-native and react-native-web can coexist in one project?

rosado16:08:38

I know about Expo, and we might end up using it, just wondering what do they do in there to achieve it

thheller16:08:29

just create <project>/shadow-cljs.edn and <project>/rn and <project>/rn-web or whatever

thheller16:08:50

so you keep the outputs each in their own subdirectory, complete with their own package.json

thheller16:08:52

so :js-options {:js-package-dirs ["rn/node_modules"]}

rosado17:08:03

thanks, that's worth a try