Fork me on GitHub
#cljsrn
<
2019-06-25
>
worlds-endless12:06:36

I can't seem to make dynamic my navbar, using ReactNavigation. Here's what I've got. Any suggestions appreciated (attempting different layerings of functions-in-functions hasn't seemed to help)

joshmiller17:06:18

I can include normal reagent components with subscriptions to re-frame data in navigation options (like headerRight)

joshmiller17:06:34

So I end up with something like (stack-navigator {:Home {:screen (stack-screen some-component {:title "Home" :header-right some-header-component})}})

worlds-endless21:06:52

Thank you! I'll check that out

joshmiller22:06:03

For those interested in http-fx that work on RN, I wrote up that little fn I posted above on my blog with some explanation around how you might adapt it yourself: https://increasinglyfunctional.com/2019/06/25/http-fx-for-re-frame-on-react-native.html