-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Add SetParams handling in TabRouter.js #132
Conversation
I noticed what you are saying... |
Actually that is done through merging the params see #134. This issue only resolves calling
We need to get both bugs fixed to get params working properly in TabNavigator |
This looks great. Can you add a test for this, or maybe share the SetParams test for StackRouter? |
OK I'm not going to lie, I have no idea how the tests work (I really work in embedded programming, where tests are dependent on hardware!). So I've just cut and paste from the StackRouter test and changed it to TabRouter. |
To run the tests, it should be as easy as |
I have managed to get the test working. |
This code doesn't work with current head. It requires
not
shall I close this and open a new pull request based on the current head? |
You can rebase the branch against master or merge master branch to this branch - |
OK this now works with latest master branch, including tests. It would be good if we could get it merged. |
Following on from #126 setParams in TabNavigator was not working. I believe this is because it is not handled in the getStateForAction function in TabRouter.js
The following code works with my changes
And fails without them. I'm presuming this is how you intended it to work, so please dismiss if I have misunderstood.