Fork me on GitHub

@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.


We'll have to update to docs to make that clearer.


thanks! I’ll check it out tomorrow


@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


you have to register them first though


@artemyarulin: Oh, I see. Is this reagent/re-frame specific or can I use this with


I mean - nope, it’s not related to reagent, you can use it with om/next simple_smile


cool. thanks, I’ll check it out. Have you considered adding an 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.


(and better IMHO)


@seantempesta: well, there is an issue so it will I guess eventually will support om-next. I have already a 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 😄


ha. good point. simple_smile


I want to use the react-native-video library: 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:

(js/require "react-native-video/Video.js”)
in my CLJS I get the error:
Error: Requiring unknown module "react-native-video/Video.js”.
Should I be able to use js/require with another library the same way we do with js/React?


hey try something like that

(set js/Video (js/require "react-native-video"))
and then:
(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


my problem is with the

(js/require "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


try to re-run packager


I tried that, but no luck. I can get the file I want from the packager with curl, so I know it’s in the right place:

curl localhost:8081/node_modules/react-native-video/Video.js
I don’t understand how RN’s require statement actually works.