TabBarVisibilityProvider
Holds whether the tab bar is hidden, for the tab navigator it wraps.
packages/ui-native/src/layouts/tab-bar-visibility.tsx
@marktiderman/genesis-ui-nativeimport { TabBarVisibilityProvider } from "@marktiderman/genesis-ui-native";react-docgen-typescript.TabBarVisibilityProvider
Holds whether the tab bar is hidden, for the tab navigator it wraps.
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | (hidden: boolean) => ReactNode | — | Receives whether a focused screen asked to hide the bar; pass it to the tab navigator. |
useHideTabBar
Hides the tab bar while this screen is focused, and shows it again when it blurs or unmounts. Pass `false` to keep it (a screen that hides it only in one mode). Outside a `TabBarVisibilityProvider` it does nothing.
No declared props.
useTabBarHidden
Whether a screen has hidden the tab bar: for chrome that sits above it (a floating bar, a mini player).
No declared props.
createPlaceExit
A place of its own inside the tabs, as Messages is on iOS: while it's open the tab bar hides for its whole stack (`useHideTabBar` on each of its screens), and its first screen has a back button (and the edge swipe) that returns to where the person came from, in another tab. This remembers that place: the last path outside `isInside`. Navigation stays the app's: `router.navigate(exit.exitPath("/"))`. Reads the path through `GenesisModules.router.usePathname`. export const messagesExit = createPlaceExit((path) => /^\/messages(\/|$)/.test(path));
No declared props.