Fork me on GitHub
#cljsrn
<
2016-05-18
>
vikeri10:05:29

@madvas: I am implementing NavigationExperimental since it is what facebook will migrate to and the abstract model fits very well with re-frame, haven’t figured out tabs yet though: https://github.com/vikeri/re-navigate

madvas11:05:36

@vikeri: yes, I saw your re-navigate before, thanks for that 😉

vikeri11:05:50

@madvas: :thumbsup:, after investigating what are your general thoughts on the navigation story in RN + cljs?

madvas11:05:27

@vikeri: it’s a mess 😄 I mean navigation in RN in general (not in cljs). I started with RN just recently, but I’m bit disappointed such essential element as navigation, isn’t solved yet. There’s many solutions, but none of them is clearly best. Tho, I understand it’s complicated 🙂

vikeri11:05:42

@madvas: Yeah I got to that conclusion as well. I am hoping on NavigationExperimental + re-frame though. Not sure if I will need much more than that.

madvas11:05:38

@vikeri: I’ll let you know, when I’ll push react-native-navigation with re-frame, so u can take a look 😉

knotschi15:05:41

how can I create environment related vars in re-natal? like api keys that should be different in dev and prod

vikeri15:05:35

@knotschi: You should use Google Closure defines, but that is not fully working in re-natal yet: https://github.com/drapanjanas/re-natal/issues/46

knotschi15:05:13

ah, ok, thanks

savelichalex15:05:58

Has anyone worked with RN Animated API?

savelichalex15:05:26

What am I doing wrong?

savelichalex15:05:45

Um.. I change update for mount and it work… I don’t understand how it happened...

vikeri15:05:25

did-update is not run the first time but all subsequent renders, did-mount is only run the first time: https://facebook.github.io/react/docs/component-specs.html#lifecycle-methods

savelichalex15:05:25

I know that, and I want animation on every update

vikeri15:05:00

Ok sorry, not familiar with Animate. But one may perhaps assume that an animated watcher is inserted only on mount and is thereafter triggered on each update as well?

savelichalex15:05:33

Now tried add both update and mount, it work only on mount

savelichalex15:05:08

Maybe this work only with local state

bikeshedr15:05:32

I'd like to get into cljsrn and have used neither cljs nor r(n) before, any tips on how to get started fast are appreciated. My current plan is to get something running on my iphone via the instructions on https://github.com/drapanjanas/re-natal

savelichalex15:05:25

Looks like my fault) thx @vikeri

vikeri15:05:29

@bikeshedr: Sounds like a good plan

bikeshedr15:05:16

vikeri: thanks 🙂 where do you guys look for api docs? straight at FBs rn page or are there cljs docs I haven't spotted yet. Sorry for the confusion on my part, it's just a bit overwhelming with so many new libs and options

vikeri15:05:39

The main place I go to for RN is: https://facebook.github.io/react-native/docs/getting-started.html But then for CLJS specifics you may also want to check: https://github.com/Day8/re-frame and https://reagent-project.github.io/ if you choose reagent as interface in re-natal.

bikeshedr16:05:47

vikeri: yeah, I was planning to use reagent as an eas(y/ier) start 🙂 thanks a bunch, I hope the confusion goes away soon. it probably stems from the fact that I didn't make a smartphone app before and havea ios dev license sitting around since september. so I just wanted to get something running asap 🙂

vikeri16:05:39

Alright, for a good overview of how the FPR:ish architecture works I highly recommend the second re-frame link. The readme is quite extensive. You can also check out the channels #C073DKH9P and #C0620C0C8 To me using RN feels much more like doing web frontend than app dev. But I haven’t dug down deep in native integrations yet...

bikeshedr16:05:04

alright, thanks mate, time to roll up the sleeves

vikeri16:05:39

Haha yeah, good luck!

frank17:05:36

are there any examples of routing with re-natal and om next? is the RN navigator component used at all? How is this done?

knotschi17:05:38

does anybody ever used re-natal with a native module?

knotschi17:05:58

I am trying to use react-native-mixpanel but it is not working

knotschi17:05:30

it always tells me that it cannot find that module even though I installed it via npm and with re-natal use-component

knotschi17:05:05

I also installed the mixpanel native component in xcode

knotschi17:05:56

than I did "re-natal use-figwheel" and than I restarted the rn packager

knotschi17:05:26

I still get the message "Requiring unknown module 'react-native-mixpanel'"

knotschi17:05:50

in my code I do "(def mixpanel (js/require "react-native-mixpanel"))"