-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: add NavigationHeaderScenesTabs example #15
base: master
Are you sure you want to change the base?
WIP: add NavigationHeaderScenesTabs example #15
Conversation
a5e6932
to
86af827
Compare
After some more digging and understanding of |
K, i think i have solved this by remodeling the route architecture like so:
No we have an initial index route and if we push |
Sooo -- i might be tapping in the dark here again, but the behaviour of TabsRoute and StackRoute is not the way i'd expect it to be. This is a demonstration of the current behaviour:
What am i doing wrong? |
Sooo.. i'm a bit stuck. :) I don't really get the behaviour of StackRoute & how pop works. See
index.ios.js
L84. I tried to understanddefaultStackRouteReducer
for ~1h via inserting lots of console.logs but i'm not much smarter now :D. The terminology aroundnextLeaf
and the if-statements concerning it are kind of nebulous to me.On the component side, I do not exactly now how to interact with all the props thats passed to e.g.
YourHeader
, there is a lot of information coming in. These are the props passed toYourHeader > NavigationHeader::renderLeftComponent
after clicking on "Push Route":I have no clue what to check for here -- i'd love to write some documentation for this if you could explain this.
So, to explain what i try to do right now: we start out at route "/", this redirects us to "/apple". Now i want to click on "Push Route" -- this should lead me to "/apple/foo" and show the back arrow in the top nav bar, which would pop the stack and lead me to "/apple" again. Is there something wrong in the way i approach the routes definition or anything? I just can't pull it off. :)