-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
<Tabs> backToInitial and tabBarOnPress interaction #2932
Comments
Created a fix for this, will make a PR. |
Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists |
@aksonov Still happen on v4.0.1 😡 |
PR for better documentation to avoid this confusion for other users is welcome. But yeah, looking at the code I saw that if you define |
I am pushing a PR with this change - I believe it does not hurt. :-) |
Version
Actual behaviour
I've found that if the "backToInitial" property is set for Tabs, then any function defined for the "tabBarOnPress" property is not called.
Expected behaviour
After browsing through the source code a bit, I see that "backToInitial" itself is implemented as a function set to "tabBarOnPress". I would have expected that any function users pass into the "tabBarOnPress" property be chained together with the "backToInitial" function if both "backToInitial" and "tabBarOnPress" are set for Tabs.
At the very least, the API documentation should notify users of the current behavior.
The text was updated successfully, but these errors were encountered: