This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aatree (5)
- # admin-announcements (37)
- # alda (1)
- # announcements (4)
- # architecture (1)
- # aws (3)
- # beginners (82)
- # boot (230)
- # braid-chat (14)
- # cider (48)
- # cljs-dev (8)
- # cljsrn (31)
- # clojars (47)
- # clojure (72)
- # clojure-austin (2)
- # clojure-russia (396)
- # clojurescript (72)
- # community-development (3)
- # component (6)
- # core-async (6)
- # cursive (26)
- # datomic (42)
- # emacs (6)
- # events (35)
- # hoplon (57)
- # immutant (3)
- # jobs (2)
- # jobs-discuss (10)
- # ldnclj (16)
- # luminus (2)
- # off-topic (50)
- # om (181)
- # parinfer (285)
- # proton (68)
- # re-frame (19)
- # reagent (2)
- # ring-swagger (23)
- # yada (36)
@adamfrey: It looks like the problem is with your host names. In the example app, either edit the build.boot and change "localhost" to the ip/hostname of your development computer, OR run
adb reverse tcp:8079 tcp:8079 and ensure the hostname is "localhost". Hope that helps.
@mjmeintjes hey, while you're online: I added the android logging task to
dev, but I got no logs in the output. I rebuilt it and changed thr conch
adb call to just be
utils/sh like the ios one and then it worked. I didn't investigate it to figure out why. Does the android lover work for you?
@adamfrey: That's strange, as it worked for me. If you can submit a pull request with your changes, I'm happy to test it out and merge.
@adamfrey: you can try accessing the port from safari on the device (websocket is built on http)
Are there any examples for handling image resources in react native from clojurescript? Looking at luno it looks like all of the images are base64 inlines?
re-natal now support images using
require calls, at least this is how RN manages it my itself
@artemyarulin: Oh, I see. Is this reagent/re-frame specific or can I use this with om.next?
nope, this is way how RN manages images itself - https://facebook.github.io/react-native/docs/images.html#content
cool. thanks, I’ll check it out. Have you considered adding an om.next template? I know it doesn’t make sense for the “re-“ name, but it seems like you’re doing quite a few different things from natal.
@seantempesta: well, there is an issue https://github.com/drapanjanas/re-natal/issues/15 so it will I guess eventually will support om-next. I have already a template https://github.com/artemyarulin/om-next-cross-platform-template which really just a raw material Currently I’m into cross-platform development and making re-re-natal with set of additional helpers doesn’t make any sense, indeed. Rather than that I’m trying to marry Clojure and Buck build system which would handle much more than this
@artemyarulin: I hear ya. Natal seems like the newbie friendly way to quickly get up and running with clojurescript and react native, but it feels very brittle (do people who use it really never make any mistakes?). However, when I looked into your om-next-cross-platform-template it just confused me. I think because you complect the cross platform stuff with using om-next.
Indeed, cross platform makes thing more complicated - not that many people actually looking for that
Well, if I would have the same goal and vision as re-natal - I wouldn’t make a new one 😄
I want to use the react-native-video library: https://github.com/brentvatne/react-native-video I have the package in my
node_modules directory, and I can get the file I want when I curl the RN packager running on port 8081. But when I try to use:
in my CLJS I get the error:
Should I be able to use
Error: Requiring unknown module "react-native-video/Video.js”.
js/requirewith another library the same way we do with
I see an example here that is what I’m aiming for: https://github.com/alwx/luno-react-native/blob/495218dcc436f5bc7066ca136d9604a5c0d0ae0b/src/luno/ios/ui.cljs#L4
hey try something like that
(set js/Video (js/require "react-native-video"))
(def video (r/adapt-react-class js/Video))
(def video (r/adapt-react-class (.-Video js/Video)))
if you use re-natal, don't forget to add your component to .re-natal by running
re-natal use-component react-native-video
it fails with
Requiring unknown module. I’m using react-native-boot, so my setup is a little different than yours. I’m investigating