This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-15
Channels
- # admin-announcements (25)
- # beginners (21)
- # boot (487)
- # cider (8)
- # clara (2)
- # cljsrn (35)
- # clojure (44)
- # clojure-austin (6)
- # clojure-russia (211)
- # clojure-uk (25)
- # clojurescript (225)
- # core-matrix (1)
- # data-science (3)
- # datomic (23)
- # events (1)
- # hoplon (9)
- # immutant (14)
- # jobs (1)
- # jobs-discuss (5)
- # ldnclj (3)
- # lein-figwheel (2)
- # off-topic (2)
- # om (65)
- # onyx (65)
- # parinfer (3)
- # pedestal (4)
- # proton (1)
- # protorepl (1)
- # re-frame (16)
- # reagent (3)
- # ring-swagger (1)
- # specter (11)
- # untangled (1)
- # yada (8)
@aiba: re-natal has a nice mechanism for requiring packages and images (“re-natal use-component” & just put your images in the ./images directory and they’ll be pulled into your project)
@seantempesta: thanks that's helpful to know about.
I'm going to try the re-natal route, but I'm very interested to know about the differences between these three systems. I'd love e.g. some kind of information on http://cljsrn.org that helps guide people to the right choice for them. (I'd offer a PR but I don't feel I understand the differences well enough.)
are you doing more than iOS @aiba
at the moment just ios but of course it would be nice to have a path to android if i happen to build something worthwhile
Yeah, any http://cljsrn.org PRs that elaborate on the differences would be welcome
I would suggest re-natal as I guess it’s the most popular solution, meaning a lot of edge cases are handled. Another good candidate would be boot-react-native, as it actually uses RN packager and avoid many issues and hacks that re-natal does (figwheel-react-native actually).
@mfikes: cool, i'll think about such a PR. i spent most of today playing with natal, re-natal, and boot-react-native so i might be in a good position to offer some perspective on the differences.
@artemyarulin: thank you, yes in my playing around, re-natal worked best out of the box, seems most actively developed, supports RN 0.21 (vs boot-react-native's 0.20), had no weird chrome errors in the chrome debugger, and the dev reload time after editing a file is impressively instantaneous
yep, good choice - in this chat many folks are using re-natal, so likely you would get some response here
Has anyone using boot-react-native been able to require images using js/require
? I think something might need adjusted in boot-react-native, but I wanted to ask before I dive in. @mjmeintjes
@aiba: @artemyarulin: Yes, re-natal is likely more appropriate for a lot of people at this point. I’d revise things to list it first on http://cljsrn.org, remove the bit about it being a fork of natal, and just have the page describe what things are.
@mfikes: yes I think that's a great idea. I still don't know whether there are good reasons a newcomer might choose to use natal or boot-react-native. If there are, http://cljsrn.org could explain those reasons. If not, maybe just straightforwardly explain/advise that re-natal is the way to go?
Holy moly, the react-native packager is buggy has hell (at least as of version 0.19)
ha, I’ve heard that
Has anyone else had trouble with spurious "requiring unknown module" errors?
I'm having trouble especially when building offline bundles (main.jsbundle).
also the packager doesn't seem to always pick up requires from cljs-transpiled files
@pesterhazy: Yeah, I also can’t get the packager to pick up static image requires. I’m wading through the source code, but it’s a deep dive
@adamfrey: assets usually work for me, until suddenly they don't
@adamfrey: in the offline bundle or in dev mode?
it should work, but you need to get the paths right
it needs to be in the app
subfolder (where node_modules
also is)
yeah, I have my images in app/img/file.png
and then I do (js/require “./img/file.png)
and it doesn’t find it
strange
remember, no symlinks, they don't work
might be useful to add images to the SimpleExampleApp in boot-react-native
so people can copy a config that works