forked from react-navigation/react-navigation
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…ct-navigation#486) Pressing a tab bar often requires some kind of side effects other than navigation to be performed. This PR will allow a screen accept `onTabPress` callback as an option. It will be invoked exactly once on every press on the screen's corresponding tab button, receiving a `TabScene` object as an argument.
- Loading branch information
Showing
3 changed files
with
40 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
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