cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
dotemacs 2019-12-07T08:55:35.150900Z

Good to see this discussion and I encountered most of the things mentioned above, like the patching of figwheel-bridge, either in the issues or pull requests of re-natal . But I just switched to using shadow.cljs and that is just simpler to use. You don’t miss any of the “manual” steps you have to do with re-natal, when adding new libraries/components. When it comes to requiring libraries, you can just do the normal require dance you’d do on the Clojure side. For example, you don’t have to do the step as mentioned by @joshmiller above, you do install the library via npm/yarn and then you require it like this:

(ns something.something
  (:require ["react-native" :as rn :refer [Platform] :rename {Platform platform}]))

dotemacs 2019-12-07T08:59:37.152900Z

Having said that, I still do (js/require…) out of habit in places… I created an app for the re:Clojure conference that was held this week and this is how I done it. It’s mostly based off of the sample apps as created by Thomas Heller, the author of shadow.cljs. Somebody might find it useful: https://github.com/reclojure/reclojure-mobile/

👍 3
Oliver George 2019-12-07T11:40:53.153200Z

Thanks

dottedmag 2019-12-07T17:14:31.154100Z

Has anyone tried to use https://github.com/callstack/haul with Clojure?