Fork me on GitHub
#cljsrn
<
2016-08-19
>
vikeri07:08:35

@weltan: I know what you are referring to, the fact that scenes animate in transitions make for weird behavior, I have thought a bit about it. Since NavigationExperimental have been very unstable I’ve been hesitant to implement some advanced solution for now though and just let it do those weird switches. I’m not releasing my app yet. My initial idea of how to solve it was to experiment with :should-component-update and prevent scenes from updating if it was in transition. But your solution looks good. Btw, I think it would be good if we kept fragmentation in our small community as low as possible. And since you obviously have improved stuff I would be happy to merge those changes if you’d open a PR. Or is there some reason you want different repos?

pesterhazy08:08:20

👍 for collaboration

vikeri09:08:19

@weltan: This issue with animations screwing things up with re-frame is not only present in navigations but also in things like toggles. Ideally one would address all these issues at the same time… Needs some hammock time though.

boorad13:08:02

@doglooksgood: I’ve been trying react-native-navigation recently, with boot-react-native, om.next, etc. and not getting very far.

pesterhazy13:08:15

somebody should write a blog post comparing the different Navigator options for RN (and BRN)

pesterhazy13:08:09

it's a jungle out there

boorad13:08:17

yep… I’m looking thru re-navigate right now.

boorad13:08:58

it’s the (.registerComponent …) that’s giving me an issue

boorad13:08:35

@vikeri: what .registerComponent is that? the one from react-native-navigation?

vikeri13:08:25

I think that NavigationExperimental fits very well with re-frame and thus can be applied without too much abstractions as in re-navigate. I think that navigation sometimes is made more complicated than it is. I admit that the complexity of the UI of my app is not too high though. But generally the two features I think I will use are switching between different ”pages" in the app (with tabs) and going deeper into those pages with the normal nested navigation.

boorad13:08:47

that would fit my needs

vikeri13:08:51

@boorad: It’s the normal AppRegistry.registerComponent

boorad13:08:50

I’m trying to do this from cljs:

boorad13:08:27

with

(.registerComponent rr/Navigation name (fn [] component)))

vikeri13:08:53

Oh, I don’t know anything about react-native-navigation. re-navigate uses no libraries.

boorad13:08:55

Navigation.registerComponent('example.FirstTabScreen', () => FirstTabScreen);

boorad13:08:03

ah, got it… sry

vikeri13:08:27

You probably need r/reactify-component?

boorad13:08:23

not using reagent 😞

boorad13:08:44

guess I’ll pull it in

vikeri13:08:51

@boorad: Can’t help you then 😑, why not reagent?

boorad13:08:38

no reason, it’s probably my issue

boorad13:08:04

I’m newer than most at this stuff - old erlang guy coming into this new hipster JS stuff

vikeri13:08:40

Haha ok! But are you using om/om-next, other wrapper or just vanilla?

vikeri13:08:26

Ok, exciting! Works well? What storage do you use?

pesterhazy13:08:33

@boorad is boot-react-native working with om-next?

pesterhazy13:08:55

maybe you could contribute a starter example 🙂

boorad13:08:29

yes, I’d love to after I get a couple of example scenes / screens working

boorad13:08:48

manipulate a bit of state w/ om-next and send it over to you

artemyarulin13:08:38

IMHO - om-next is a bit rough for new comers, but very cool indeed 🙂

vikeri13:08:35

I really like re-frame but I’m a little worried about performance. Would om-next be better?

boorad13:08:11

@artemyarulin: om-next makes a bunch of sense to me on state manipulation, as well as friendliness to CQRS

artemyarulin13:08:10

@boorad: Yeah, ideas in om-next are really powerful. What do you use (plan to use) on backend? Datomic?

boorad13:08:25

possibly - or ArangoDB

boorad13:08:32

datomic as graph or arango