Fork me on GitHub
#cljsrn
<
2016-09-18
>
surreal.analysis03:09:10

@edwthomas Can you past what routes, scene, and my-route-mapper are?

surreal.analysis03:09:51

Gut instinct is that your navbar definition is wrong

surreal.analysis03:09:15

And that it should be

(def navbar (r/adapt-react-class (.-NavigationBar (.-Navigator ReactNative))))

vikeri10:09:25

@jorda0mega @boorad: Thanks 😄 I basically summarized the wisdom from this slack channel into 20 minutes

pesterhazy13:09:10

@edwthomas use it like this :navigation-bar (r/as-element [navigation-bar-container])

edwthomas15:09:47

@surreal.analysis I had tried that and it did not work. @pesterhazy Thanks! Your solution worked! The navigationBar prop is now being set correctly but there’s another error that says that my routeMapper prop is not correctly set. I should be able to fix that by looking at the docs. Thanks!

edwthomas15:09:45

For those following, I used the reagent r/as-element function but I had it like so:

:navigation-bar #(r/as-element [navbar])
I wasn’t passing a node to the navigationBar prop but a function. At least that’s my understanding of why it wasn’t working.