-
-
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
Access TabIcon to add badge cont'd #126
Comments
in TabRouter.js / getStateForAction it seems to be missing the if (action === 'SetParams') clause. I copied the StackNavigator code
in to the function, beneath the if (action.type == 'Navigate') clause and the params showed up in the redux debug output. I can now set my badgeCount using this as my navigationOptions
and this to set it
Is this code supposed to be implemented in TabRouter or am I missing how this is supposed to work? |
#132 fixes this |
Continuing from #116 , sorry I can't reopen the previous issue.
I wanted to try out the params options first as I wanted to understand the process. I've got this code
For my "Home" tab, inside the navigationOptions, but state.params is always undefined. I've tried the following line to try to decode the problem.
but the console output is always
Even after pressing the button and setting badgeCount to 1. I can't seem to find any way to initialise or get to these set params.
Thanks for your help.
The text was updated successfully, but these errors were encountered: