Add animated tab bar show/hide support for native tabs #4001
alex-vance
started this conversation in
Ideas
Replies: 1 comment
-
|
Hey @alex-vance, that makes sense. I think this could be supported. We're currently close to stable release & it's our focus, but I'll add this to the backlog & we'll take care of it after first stable release. |
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.
-
Description
TabsHostcurrently supportstabBarHidden, but on iOS it hides/shows the native tab bar immediately by callingsetTabBarHidden(... animated: NO)on iOS 18+ or togglingtabBar.hiddenon older versions.It would be useful to have first-class support for animated tab bar visibility changes, for example:
tabBarHiddenAnimation?: "none" | "fade" | "native"tabBarHiddenAnimated?: booleanUse case
Some apps use native tabs with a central action tab or overlay menu. When opening that overlay, the app may need to hide the native tab bar without causing an abrupt layout/visibility change. A fade transition keeps the native tabs experience but avoids needing to patch
react-native-screens.Current workaround
The workaround is to patch
RNSTabsHostComponentView.mmso tab bar visibility changes animatetabBar.alphainstead of immediately hiding/showing the tab bar.Conceptually:
Prior related work
tabBarHiddenitself already exists from the native tabs work, but the current implementation appears intentionally non-animated. This request is specifically for an official API to control the show/hide transition without patching the package.Related PRs:
tabBarHidden: feat(iOS, Tabs): add prop to hide the tab bar #3343tabBarHidden: feat(Android, Tabs): add prop to hide the tab bar #3344Happy to put in a PR if you're open to including. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions