This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-11
Channels
- # announcements (14)
- # beginners (119)
- # boot (9)
- # calva (7)
- # cider (12)
- # cljdoc (2)
- # cljsrn (28)
- # clojure (127)
- # clojure-dev (2)
- # clojure-europe (3)
- # clojure-italy (2)
- # clojure-losangeles (9)
- # clojure-nl (6)
- # clojure-spec (15)
- # clojure-uk (39)
- # clojurescript (35)
- # community-development (4)
- # cursive (9)
- # datascript (8)
- # datomic (5)
- # duct (3)
- # emacs (10)
- # fulcro (45)
- # graphql (3)
- # jobs (1)
- # kaocha (8)
- # luminus (2)
- # off-topic (121)
- # onyx (3)
- # pathom (15)
- # pedestal (31)
- # planck (5)
- # reagent (25)
- # reitit (3)
- # remote-jobs (1)
- # shadow-cljs (48)
- # slack-help (1)
- # sql (142)
- # tools-deps (78)
Hi! I would like to use visual studio for clojurescript. Someone know what is the best configuration ? (if it exists) thx š
So Iām trying out rn with shadow-cljs. Complete noob at rn and android development, so Iām probably missing something. following the shadow-cljs config guide Iāve set the build target to :react-native, :init-fn to hello.core/init and :output-dir to āappā. In addition Iāve changed the android/app/build.gradle project.ext.react to point to āapp/index.jsā. When I then build with react-native run-android it compiles the original index.js file. I somehow managed to get it to point to the app/index.js previously (which was pretty broken as well), but now I canāt seem to get it to build from the correct index.js. Iāve restarted adb a couple of times, tried to clear cache, rebuilt cljs, restarted the metro
@emil0r did you see this repo? I also couldn't figure out how to make it not use the index.js
in the root so I just made that import the app/index.js
instead. https://github.com/thheller/reagent-react-native/blob/master/index.js#L15
OK. I tried that before and got it working, but the hot code reload didnāt seem to work
Not working in my setup. Probably bungled it somehow. Will clone your repo tomorrow and take a look at the diffs
make sure you have a function properly marked that should be called after code is loaded (eg. https://github.com/thheller/reagent-react-native/blob/master/src/main/test/app.cljs#L62)
also the render-root
logic takes core of the hot reload stuff since react-native is a bit picky about components and stuff
I copy pasted your app.cljs into mine and copied the image youāre loading for shadow. The app loads fine, and shadow-cljs compiles it when I changed the text to include an extra exclamation mark
uhm there is one problem where the logic to pick your local IP may be picking a wrong one
if you don't see that it might just fail to connect the websocket required for hot reload
https://shadow-cljs.github.io/docs/UsersGuide.html#target-react-native didnāt have it included,