This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-10
Channels
- # announcements (1)
- # babashka (18)
- # beginners (122)
- # calva (18)
- # cider (3)
- # cljs-dev (2)
- # cljsrn (3)
- # clojure (102)
- # clojure-europe (15)
- # clojure-france (2)
- # clojure-nl (1)
- # clojure-portugal (1)
- # clojure-spec (3)
- # clojure-uk (8)
- # clojurescript (46)
- # clojureverse-ops (5)
- # code-reviews (1)
- # conjure (2)
- # cursive (15)
- # datalog (13)
- # datomic (18)
- # emacs (4)
- # fulcro (8)
- # helix (8)
- # instaparse (1)
- # introduce-yourself (2)
- # jobs (4)
- # leiningen (23)
- # lsp (26)
- # malli (21)
- # off-topic (34)
- # pedestal (21)
- # polylith (6)
- # reitit (5)
- # remote-jobs (3)
- # schema (1)
- # sci (8)
- # shadow-cljs (8)
- # spacemacs (3)
- # sql (30)
- # testing (31)
- # tools-deps (21)
- # vim (25)
- # xtdb (8)
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?
I know about Expo, and we might end up using it, just wondering what do they do in there to achieve it
just create <project>/shadow-cljs.edn
and <project>/rn
and <project>/rn-web
or whatever
so you keep the outputs each in their own subdirectory, complete with their own package.json
then each build with :js-package-dirs
accordingly https://shadow-cljs.github.io/docs/UsersGuide.html#alt-node-modules
same way I setup the demo https://github.com/thheller/reagent-react-native