Fork me on GitHub
#cljsrn
<
2018-09-27
>
Trey09:09:31

is anyone using react-navigation with cljs and react-native?

vikeri09:09:38

@trey We are, unfortunately we’re using an old version of react-navigation and when I tried to upgrade I ran into trouble. But eventually I’ll have to get it working properly 🙂

Trey09:09:56

ahh ok yea I saw your repo and noticed it was a bit outdated

Trey09:09:40

well guess it's time to dig in from scratch!

vikeri09:09:56

@trey Are you using re-frame?

Trey09:09:59

what were your biggest hurdles with it?

vikeri09:09:17

Ok nice! Then the biggest issue is trying to keep the navigation state in app-db (I had to keep it a js object) and then to hook up dispatchers and listeners

vikeri09:09:10

Ideally the nav state is just another cljs-map in the app-db but it’s not trivial to set things up. react-navigation does quite some magic in order to be as performant as it is

Trey09:09:23

as it always does

Trey09:09:09

thought about just handleing navigation through re-frame itself, not sure how well that works though

vikeri09:09:24

It’s slooow

Trey09:09:31

what I figured

vikeri09:09:41

We did it before

Oliver George10:09:01

(My naive react-navigation integration doesn't play well with figwheel because navigation state isn't in app-db)

Trey12:09:11

I was thinking about doing that too but thought that would be the case