WIP: add NavigationHeaderScenesTabs example #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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. :)