This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Replies: 2 comments 4 replies
-
|
Custom navigators tap into the router, there is no single mechanism for controlling how a custom navigator renders content. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Unfortunately it's not possible with the material bottom bar (see: react-navigation/react-navigation#9697 (comment)). You don't want to remove the route, just the button. The easiest to achive this is to patch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been wanting to use material bottom tabs but I need the ability to hide a tab unless they are a qualified user. Currently, only the innate bottom tabs shipped with expo router allows this.
I'm aware of the layout showcase https://github.com/EvanBacon/expo-router-layouts-example/blob/main/layouts/material-bottom-tabs.tsx
and tried modifying it such that I can hide a tab similar to how the innate bottom tabs were implemented https://github.com/expo/router/blob/main/packages/expo-router/src/layouts/Tabs.tsx
However, I'm having trouble finding a property I can use in material bottom tabs to hide the tab. Filtering out the screen in the custom navigator doesn't work either.
According to the docs, this currently isn't possible
https://expo.github.io/router/docs/migration/react-navigation/custom-navigators/
Beta Was this translation helpful? Give feedback.
All reactions