Tab bar
The app's main sections at the bottom of the screen: an icon and a word each, a badge for what is new, clear of the home indicator.
- Domaine
- Navigation et cadre
- Niveau de support
- Taille
- Non mesurée
- Qui l'utilise
- Aucun produit en production ne l'importe encore

« Main sections », son histoire React Native à la largeur d’un téléphone — le même code sur iOS et Android.
Mobile uniquement — React Native, depuis @krizaka/ui/native. Bêta : son API peut encore changer à une version mineure.
- Web · n/a. A web app navigates with its sidebar or a site's bar. → App shell
- Bureau · n/a. The Mac app navigates with its sidebar. → App shell
Pourquoi il est là. Used by Sovkora, Verikora, Folioviv.
Quand l’utiliser
- The root of a mobile app with two to five sections (Home, Auctions, Messages, Me).
- As the
tabBarof expo-router or React Navigation.
Quand ne pas l’utiliser
- To switch between views of one screen.À la place : Tabs
- For more than five destinations: a list on a “More” screen.
Installation
Installer
npx expo install react-native-svg
npm install @krizaka/uiImporter
import { TabBar } from "@krizaka/ui/native";Enveloppez l’application une fois dans ThemeProvider de @krizaka/ui/native : chaque composant lit ses rôles de couleur.
Exemples
React Native n’a pas d’aperçu en direct sur le web : chaque exemple montre la capture de sa story, testée dans les deux thèmes, et le code à copier.
Main sections
A video app's four sections, three unread messages.


Props
| Prop | Type | Défaut | Description |
|---|---|---|---|
itemsrequis | readonly TabBarItem<T>[] | — | The app's main sections, two to five. |
onValueChangerequis | (value: T) => void | — | Called with the section pressed (navigate there); a light tick confirms it. |
valuerequis | string | — | The current section. |
aria-label | string | — | The accessible name of the bar (“Main sections”) — passed translated. |
onReselect | ((value: T) => void) | — | Called when the current section is pressed again: scroll it to the top, refresh it. |
style | StyleProp<ViewStyle> | — | Styles merged last. |
Accessibilité
- A
tablistoftabs, each named by its word and its badge in words (badgeLabel). - At least 48 points per item; the safe area below is kept.
Bonnes pratiques
- Name each section with one word; the icon is filled when selected.
- Use the badge for what needs attention (unread), never for promotion.
onReselect: scroll the current section to the top.
Composants liés
Générée depuis le code de @krizaka/ui 5.3.4 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub