This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-31
Channels
- # aws (2)
- # beginners (101)
- # cider (8)
- # clara (8)
- # cljs-dev (3)
- # cljsrn (17)
- # clojars (2)
- # clojure (67)
- # clojure-austin (2)
- # clojure-finland (1)
- # clojure-france (5)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-russia (2)
- # clojure-serbia (1)
- # clojure-spec (72)
- # clojure-uk (112)
- # clojurescript (92)
- # core-async (74)
- # core-typed (2)
- # cursive (8)
- # datomic (2)
- # duct (5)
- # emacs (35)
- # events (11)
- # fulcro (32)
- # instaparse (9)
- # jobs (1)
- # luminus (1)
- # lumo (3)
- # off-topic (118)
- # om (2)
- # onyx (10)
- # pedestal (5)
- # re-frame (21)
- # reagent (48)
- # reitit (40)
- # ring (12)
- # shadow-cljs (113)
- # spacemacs (21)
- # tools-deps (47)
Has anyone used https://github.com/seantempesta/cljs-react-navigation in an app with re-frame? The docs say you can dispatch navigation events, and there’s an example, but I’m having trouble following the example - it still uses navigate
directly, and while there are events that reset the routing state, I can’t see exactly how they interact. If anyone has any examples of this, I’d be much obliged. (Are there newer/different RN navigation libs?)
I'm not familiar with it but the code is clean. Seems like a high quality library.
My approach is to try and live without to see if I need it: https://confluence.condense.com.au/display/IZ/Navigating+between+scenes
Lots of things to cut yourself on in the cljsrn space
I'll try and keep polishing it / fleshing it out over the next few weeks.
Feedback welcome
@hoopes We’re using it successfully but with an old version of react-navigation. I don’t think it works for newer versions of react-navigation.
Are you using the navigate
function passed in with props, or dispatching an event to change route (from anywhere)? Thanks for the reply!
Hey, thanks for the response (and sorry for my even later response) - can you share what's in your event handlers? I'd love to be able to just dispatch a routing change from anywhere, but I'm not sure what to call to make it happen. Are you also storing your routing state in the app-db? Thanks very much!
@U0AU4CPTN... also, sorry for the @-notification, i hadn't seen this, and wasn't sure if you'd get notified of my response. If that's super annoying bad slack etiquette, I apologize!