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

fix(regression): BottomNavigation can't render a single tab #3415

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

brunohkbx
Copy link
Collaborator

Summary

After rebasing #3408 I noticed that this regression has been introduced in V5. The BottomNavigation breaks when you try to render it with a single tab.

Issue

Test plan

  1. Open the example APP
  2. Go to the example/src/Examples/BottomNavigationExample.tsx
  3. Modify the routes to have a single one instead
  4. Should render a single tab as in the following screenshot

Fixed

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@lukewalczak
Copy link
Member

@brunohkbx thanks for the fix, totally overlooked it. please only adjust the test and it will be ready to be shipped!

@callstack-bot
Copy link

Hey @brunohkbx, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@brunohkbx
Copy link
Collaborator Author

@lukewalczak fixed ✅

Copy link
Member

@lukewalczak lukewalczak left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @brunohkbx!

@lukewalczak lukewalczak merged commit 31e9037 into main Oct 18, 2022
@lukewalczak lukewalczak deleted the fix/bottom-navigation branch October 18, 2022 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants