Fork me on GitHub
#cljsrn
<
2016-05-02
>
vikeri07:05:20

@anatoly: If you follow the instructions on https://github.com/drapanjanas/re-natal#re-natal you’ll get a scaffolded project that you can start working on. The reason the documentation is quite limited is that most of it is covered in the React Web parts, so have a look at https://reagent-project.github.io/ and https://github.com/Day8/re-frame for an understanding of how things work. For a small sample app built with re-natal, look at: https://github.com/vikeri/re-navigate

balint09:05:38

i'm trying to rewrite a mobile (webview) app in rn via re-natal. it had a bunch (hundreds) of images (offline). is there a way to refer to images without the need to require() them? (because there are just so many of them)

artemyarulin11:05:13

@balint: Write a macros - it has a full access to hard disk, so go though all the images and then generate all the requires and store it in the array. Not sure how require for images on RN works, maybe it’s worth checking the internal implementation

balint11:05:31

@artemyarulin: sounds good, i shall look into that! thx for the idea

artemyarulin11:05:13

yeah, I guess somebody did such thing already (or was it me? Don’t remember simple_smile ) in any case it’s quite straightforward

vikeri14:05:44

Is there something special with :closure-defines in regard to re-natal? Can’t get it to work...

rastandy15:05:43

trying to start working on an Android App using Clojurescript and React Native

rastandy15:05:00

I used Clojure and ClojureScript befor

rastandy15:05:25

also just tried om (not om-next) and re-frame

rastandy15:05:40

but never developed for Android

rastandy15:05:01

Does you have some suggestions on where to start from?

rastandy15:05:35

I don't know if it's better to start learning Android first and then Clojurscript + React Native development stack

rastandy15:05:51

what do you guys think it's better?

vikeri15:05:15

Start working and learn as you run into problems. See https://clojurians.slack.com/archives/cljsrn/p1462175660000112

rastandy15:05:07

so you are implicitly saying, don't worry starting first with Android specific tools, Just start with CLJS+RN right now!

rastandy15:05:13

which is what I wanted to hear simple_smile

rastandy15:05:26

thank you for the pointers

vikeri15:05:59

Haha, yes if you are not doing too much native integration you barley have to touch Java/Obj-C.

vikeri15:05:34

It will be needed for integration tests and things like bluetooth though, but I guess that is not a day one problem.

rastandy15:05:43

I'll need to do that, but first I'll get into the easy part of the app just to learn the workflow

rastandy15:05:42

I'm not new to Clojure and Clojurescript, neither to re-frame or om, so my concern is the android/ios workflow/tools part

rastandy15:05:06

thank you vikery

rastandy15:05:11

just one more question

rastandy15:05:31

it's better supported om-next or re-frame right now from re-natal?

rastandy15:05:49

and thank you for your nice help

vikeri15:05:43

Not sure, but I’m using re-frame which works very well so far.

rastandy15:05:52

many thank vikeri, I really appreciate your time and help

rastandy15:05:05

hope to contribute to the community