Fork me on GitHub
#cljsrn
<
2016-01-13
>
dvcrn01:01:02

@meow: sorry was sleeping 😛

meow01:01:52

did I wake you

artemyarulin08:01:24

@gphilipp: Mind share a solution?

dvcrn08:01:11

seems like a navigator / props passing issue into the child. I think I had that with normal rn too at some point 😄

dvcrn08:01:57

I think what I did is either grabbing the navigator self ref and passing it to the child or directly storing the reference into the state atom

gphilipp09:01:55

@artemyarulin: Yeah sure. I found a way to have the TabBar get a reference to the navigator instance by saving the navigator ref in the component local state instead of trying to transact it into the app state via the reconciler. I’d be glad if someone finds a better alternative, but it works for now:). The important part is here: https://github.com/gphilipp/cljsrn-showcase-app/blob/30d3efa77f3f4eecf56c64f22670d86f92282396/src/cljsrn_showcase_app/core.cljs#L133-L136

artemyarulin09:01:43

@gphilipp: Cool, thanks for explanation. Quite similar to what @dvcrn said

gphilipp09:01:07

yeah, but I for whatever reason I couldn’t manage to transact it in the state atom and get it working properly. See this commented out line : https://github.com/gphilipp/cljsrn-showcase-app/blob/30d3efa77f3f4eecf56c64f22670d86f92282396/src/cljsrn_showcase_app/core.cljs#L136-L136