Fork me on GitHub
#cljsrn
<
2017-04-14
>
benny18:04:29

I'd really love to use renatal for my app, but from what I'm reading, it still looks really clunky to incorporate navigating, is that correct? (i.e. state needs to be manually managed when using react-navigation)

benny18:04:41

This is the best I've found, also where I gather that state needs to be managed manually... https://github.com/vikeri/re-navigate

mengu18:04:14

anyone here?

benny18:04:34

Not getting any responses myself but I'm here

savelichalex18:04:08

@benny what the problem with react-navigation? I'm use some wrappers and that's all

mengu18:04:31

so when i do (js/require "react-native-step-indicator") i get an object with default

mengu18:04:42

as the key

mengu18:04:44

so far so good

mengu18:04:52

should i adapt it to a react class?

vikeri19:04:49

mengu: that usually works for me

vikeri19:04:18

@benny what do you mean by manually? You could either manage it in re-frame or let it manage itself. For tabs I had to let it manage itself though, and hooked myself into the callbacks to keep my re-frame state in sync

benny19:04:26

That was my main concern was how critical the getState work was

benny19:04:21

Isn't it possible to just interact with the route state in the component itself?

vikeri19:04:53

Yep, you don't have to attach it to reframe at all if you don't want to

benny19:04:30

Nice! Okay, that makes me feel much better, I started to get overwhelmed

benny19:04:59

That said, I really appreciate the work @vikeri it's helped me a lot

vikeri19:04:22

No worries, I use it myself so I just open sourced it so that we all can help out in these kinds of common tasks