Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pressing a tab bar often requires performing some kind of side effects other than navigating: _Scroll-to-top_ functionality, for instance. At the moment `TabView.TabBarTop`, which is the default on _Android_, handles `onTabPress` callback as expected, but `TabView.TabBarBottom` ignores it. This PR addresses the problem so that `TabView.TabBarBottom` can accept and handle the optional `onTabPress` callback. The callback is invoked exactly once if present on every tab bar press, accepting as a sole parameter a `NavigationRoute`, which is the route object the pressed target represents.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters