This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (2)
- # bangalore-clj (3)
- # beginners (15)
- # boot (303)
- # carry (18)
- # cider (7)
- # cljs-dev (222)
- # cljsrn (103)
- # clojure (196)
- # clojure-czech (2)
- # clojure-russia (69)
- # clojure-spec (21)
- # clojure-uk (48)
- # clojurescript (68)
- # cursive (18)
- # datomic (185)
- # events (1)
- # hoplon (2)
- # lambdaisland (1)
- # leiningen (1)
- # mount (10)
- # off-topic (1)
- # om (14)
- # onyx (154)
- # parinfer (1)
- # pedestal (3)
- # planck (5)
- # protorepl (9)
- # re-frame (17)
- # reagent (27)
- # ring (2)
- # specter (58)
- # test-check (1)
- # testing (7)
- # untangled (59)
- # yada (35)
@vikeri: haven't tried the repl in quite some time, so don't know what the status is there
what I do is to change my
on-js-reload fn to
prn the result of a function to iterate quickly
@pesterhazy: Alright, I don’t get any errors or any indication that the
on-js-reload function is happening at all. I tried adding console.log statements to that function but nothing. I’ll create issues in
https://github.com/mjmeintjes/boot-react-native/wiki/Troubleshooting <-- see the section on
Problem: console.error "Reload websocket error"
Ok, did not know that page. Maybe that should be added to the readme section about reloading.
@vikeri: I added a link to the troubleshooting guide to the homepage opening paragraph
the Red Screens are great because you can click on frames in the stacktrace, which opens an editor to the source file
Ok the reloading works in iOS, but I get the error
Requiring unknown module ”../../../app/images/logo.png” when it tries to reload. Strange.
@pesterhazy: Great! Now I’m getting weird issues with my subscriptions not conforming to spec. But that might have to do with something else...
@vikeri: added a section to the Troubleshooting Guide: https://github.com/mjmeintjes/boot-react-native/wiki/Troubleshooting
as some point we should look into why re-requiring images doesn't work with boot-reload (I have a suspicion, but am not sure)
@vikeri: did you get anywhere with your attempt to get node_modules into boot fileset?
@pesterhazy: Great! Nope, the folder is too big to be included, something to do with the attached filewatchers.
Could use the npm task but unsure of how that affects the rn packager so I skipped that for now...
cool, yeah I suspect it'll be hard to make that work with the RN packager, which expects files in a certain location
Another question, the
packager task in boot does not seem to work, what does it do that
npm start — —reset-cache does not?
npm start is the way to go, especially given that the xcode/android projects automatically start it in a terminal window
originally the idea was to run the packager from inside boot, but that turned out to be an uphill battle
quite often you want to restart the RN packager, but the cljs compiler rarely needs to be restarted; so it's better to keep them separate
also, the log output is best kept in a separate window, making things easier to grok for a beginner
REPL not working in Android though, only in iOS. Tried
adb reverse tcp:9001 tcp:9001 but it did not help.
how about adding a boot task that automatically does that? That'd save people some trouble
hm yes, although that again goes against the separation of RN packager vs boot react naitve
ideally the RN team should fix https://github.com/facebook/react-native/issues/9084, but they've never even replied to any issue I've created
a PR to react-native? Not a lot of effort, but the chances of anything getting merged is slim I'm afraid.
hello! I'm trying to get the boot-react-native example to work, but it doesn't seem that the dev server is running on 8081? The only error I get is "Could not connect to development server" on the device
@pesterhazy: Yes; recent clone of boot-react-native/example/app on a physical android device
@shader: so normally, if you run
react-native run-android, a packager window should open automatically
however, on many machines, retrieving the bundle takes a while when run for the first time
you can try it on the command line using
curl -o /tmp/bundle.js "localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false"