Hello, I'm using krell to build a react native app with cljs and reagent, at the moment I'm having trouble with the error TypeError: goog.isBoolean is not a function. (In 'goog.isBoolean(obj)', 'goog.isBoolean' is undefined). I checked https://github.com/thheller/shadow-cljs/issues/877, even though it's from shadow-cljs repo, and they were saying that it's a problem with Closure Compiler/Library versions. I don't have a lot of knowledge on this point, and I was assuming that using the latest version of krell and the latest version of clojurescript was a good strategy but it seems not to be the case.
Does anyone have the same problem? any idea on how to solve the issue?
Please let me know if I need to specify more details of deps or build, thanks a lot!
I found out that it was likely due to an outdated binaryage/oops dep
Hi, I want to port my web app to React Native since it relies chrome web Bluetooth which is experimental and not supported on iPhones and iPads. My web app is written in clojurescript and uses lein, figwheel, reagent, and re-frame. I understand that I will have to rewrite my view code, but I would like to be able to reuse my cljc files, as well as subscriptions and most of the events, and have everything be part of one project. It seems like lein and figwheel have fallen out of favour when it comes to clojurescript react native. How should I go about this?
I use shadow-cljs which supports lein builds.
Is it possible to use shadow-cljs and figwheel alongside each other in project.clj?
I haven’t used figwheel at all. I don’t think you need it for React Native — I have used shadow-cljs without figwheel with success on RN.
Do you have an example lein config?
I don’t use lein. However, in your shadow-cljs.edn file you can do:
{:lein true
...}
to pull in your dependencies.Thanks. Does anyone here share code between react and react native? Maybe cljc code?