Skip to content

Conversation

@sidorchukandrew
Copy link
Contributor

PR Description

The default maximum number of screens allowed by Android's bottom navigation view is 6. I think the reasoning is to prevent people from over-populating the bottom tab bar. However, there are two situations that I can think of that require more than 6 tabs:

  1. You have a custom tab bar and just want to use the native transition animations
  2. You are explicitly hiding some tabs from the tab bar, but still want to be able to navigate to other screens and have the nav bar visible.

The goal isn't to make the nav bar look ugly, but provide more flexibility for "hidden" screens or custom tab bars.

How to test?

Update the example app to have more than 6 screens and see them all appear in the bottom tab bar. Make some screens hidden from the tab bar but still provide a way to navigate to them (maybe add a button on one of the screens that navigates to this "hidden" screen). You should see the native animation still works.

Screenshots

Screenshot 2025-04-11 at 2 19 10 PM

@changeset-bot
Copy link

changeset-bot bot commented Apr 11, 2025

🦋 Changeset detected

Latest commit: 9dae613

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
react-native-bottom-tabs Patch
@bottom-tabs/expo-template Patch
@bottom-tabs/react-navigation Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@okwasniewski okwasniewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this!

Just a couple of comments and we are good to merge!

Copy link
Member

@okwasniewski okwasniewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this!

@okwasniewski okwasniewski added this pull request to the merge queue Apr 15, 2025
Merged via the queue into callstack:main with commit 8882434 Apr 15, 2025
7 checks passed
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