Skip to content
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

Allow developer to specify a tabBarOnPress function and set backToInitial to be true for tabs #3012

Closed
wants to merge 4 commits into from

Conversation

aaron25mt
Copy link

@aaron25mt aaron25mt commented Apr 25, 2018

See issue #2932

Previously, if backToInitial was set, any function set in tabBarOnPress would not be called. In this commit, I checked if the developer specified a tabBarOnPress function and set backToInitial to be true; if so, we will run the code for backToInitial [ie. set tab child to initial Scene] and then call the user specified tabBarOnPress function.

@aksonov
Copy link
Owner

aksonov commented May 14, 2018

Looks great, could you also update docs and regenerate navigationStore again?

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Sorry for the delay, we were working hard on new version based on React Navigation 2.x, please check 4.0.0-beta.40 and if the bug exists, reapply this PR, thank you

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

I've just committed the fix to work with react-navigation v2.x

@aksonov aksonov closed this Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants