Ce qui existe en React Native, et en quoi chaque composant diffère de son jumeau web.
Sur un téléphone
46 histoires React Native à la largeur d’un téléphone — les écrans entiers d’abord, puis l’histoire la plus riche de chaque composant. Chacune est la capture de son histoire, refaite quand le code change ; ouvrez un composant pour son code.
Ce qui tourne en React Native, depuis @krizaka/ui/native. La plupart des composants existent sur les deux plateformes, avec le même nom et les mêmes propriétés ; quelques-uns n'existent que sur mobile, parce que la plateforme les demande (une barre d'onglets, une feuille, un tirer pour actualiser).
71 composants sur les deux plateformes, 19 sur mobile seulement, 141 sur le web seulement.
Parité des composants entre le web et React Native
There is no clipboard in the package: onCopy receives the text and the app copies it. The evidence unfolds in place (a pressable summary) instead of a native details.
onHome instead of href/homeLink; no chips (a phone has no room). AppHeaderSearch is an icon (no ⌘K): it opens the app's search screen; AppHeaderCount takes onPress. The safe area's top inset is the provider's (insets).
The fallback is the initial of alt when fallback is not given. size also takes a number of points. defaultAvatar and fallbackSrc work as on the web (the default pictures are WebP, drawn by Image); defaultAvatarUrl is exported from @krizaka/ui/native. src is a URI string (an Image source), not a URL object. An SVG src (….svg, data:image/svg+xml,…, or any URI with svg) is drawn by react-native-svg — Image cannot. presence adds a dot (online, away, busy, offline) and ring a story ring (new, seen, live): mobile only for now.
The text is the label prop (a string), not children: it is also the accessible name. onPress instead of onClick (a Pressable); haptics, if any, belong to your onPress. icon places an icon before the label; there is no asChild. loading shows the platform's ActivityIndicator in place of the icon. variant="gradient" draws its fill with react-native-svg (React Native has no CSS gradient).
onPress on Card.Root makes the whole card a button (no asChild, no interactive). Built on View, Image and Text: style with style, not className. No Card.Stat and no reveal.
The composer keeps clear of the home indicator; the send button plays a light tap. A failed bubble is itself the retry button. ConversationItem takes presence (a dot on the avatar) instead of online. MessageBubble takes children (a Markdown answer) in place of text; MessageComposer takes meta, usually a ComposerMeta (the model chip and a status line shown only when true).
Always a 44-pt row: the box and its words, pressed as one; error shows under it (no Field around it). checked is true or false (no indeterminate); label names it when the words are a sentence with links.
The group's name is aria-label (not label). scrollable makes the group one horizontal row: a filter bar. onPress semantics: a chip alone is a checkbox, in a single group a radio.
A field that opens a Sheet with a search box and the matching options: radios for one value, checkboxes and a Done button with multiple. onSearch(query, signal) is debounced (250 ms) and aborted by a newer query, as on the web; no creatable yet.
No popover field (DatePicker, DateRangePicker): on a phone, the Calendar, the DayStrip or the wheels sit in the screen or in a Sheet. DateField is typed (day · month · year, numeric keypads); DateWheel is the same date as three wheels — the native form's DateField uses the wheels. Each value a wheel passes, each day or slot pressed plays a selection haptic — when the app passes haptics to the ThemeProvider (expo-haptics): the platform has no native module. A wheel is an adjustable control for VoiceOver and TalkBack (swipe up or down), named by its label, its value read as words.
One component, Sheet: a bottom sheet on React Native's Modal (focus kept inside, the back button and the scrim close it), its grip on top, rising with the theme's ease. It holds what a phone shows over a screen: a choice (Select, Combobox use it), the details of a pin on a map, a short form.
The total and the change sit above the chart as a headline (the first thing a phone shows), not in the description. No data table or export: swipe on the chart to hear each period.
One component, TextField: the label, the input, the hint or the error together (no Field.* parts, no htmlFor). Every TextInput prop passes through (secureTextEntry, keyboardType, autoComplete, returnKeyType); multiline is the text area; onValueChange gives the text. end holds an adornment (a spinner, a check, a show-password button); inputRef focuses the input. A choice among many is Select: a field that opens a Sheet of options.
Import createKrizakaForm from @krizaka/ui/native/form: the same definition (schema, defaults, i18n), the same useForm, form.* fields drawn with the native ones. form.Form is a View; form.Submit takes label and announces the first error of a refused submit (no focus to move). DateField is three wheels by default (entry="parts": typed day · month · year); RadioGroup has the native looks (variant list · cards · buttons · segmented); Select and Combobox open a Sheet; Switch is a settings row drawn by the theme; Slider floats its value; Money uses the decimal keypad. Each control plays its haptic when the app passes haptics to the ThemeProvider. No Combobox, TagInput, FileUpload or Slider field yet: a screen of its own (a picker) sets the value, or form.Field draws it.
The steps light once on mount (animated), not on scroll. drain keeps the default look's final state: the spent steps do not fade on mobile, except in the arcade flavour.
The same props. Reorder with the up and down buttons (no drag). A tone is picked in a sheet; the moves are chips, the one chosen opens its roles, confirmation and reasons below.
No data table or export: the plot is one adjustable element whose label is the title and the summary; swipe up and down to hear each point. A tap selects the nearest point and writes it under the chart; no hover. No markers, no end labels; scheme and theme (from @krizaka/ui/native's useTheme()) follow the app's theme.
Its own entry, @krizaka/ui/native/list (FlashList, an optional peer); rows are rendered by renderItem, not described by row. useInfiniteList loads the next page near the end and refreshes on a pull, through @krizaka/query.
product (sovkora, verikora, folioviv, krizaka) draws the product's animated ProductMark; on the web it is the mark slot. Announced with the platform's announcement (and a polite live region) instead of role="status". No LoadingRegion: lists show their own skeleton rows (List loading). overlay and page cover their parent with the theme's surface at 90 %; no backdrop blur.
MapLibre Native (@maplibre/maplibre-react-native, an optional peer, with its Expo config plugin): the same style and tiles as the web — it reads pmtiles:// itself. A marker's details open in a Sheet (@krizaka/ui/native); markers and Near me play a haptic. Near me asks the system's permission through MapLibre's LocationManager when pressed; the app declares the location usage in its config. The map's name lists its places for VoiceOver and TalkBack; the screenshots of these stories are drawn by a stand-in (the markers placed, not the tiles).
Drawn in Text and View from the same AST: no linkAs; onLinkPress receives the address (http(s) links open with the system by default). Code blocks scroll sideways and are coloured by the same grammars, from the theme's text roles; there is no copy button. headingIds and codeLabels do not exist: there is nothing to link to on a phone, and no copy button. Tables use content-sized columns inside a horizontal ScrollView with a visible scroll indicator, rather than the web's scroll shadows. Text uses native line breaking.
title and description are strings; the action is a native Button. No framed and no titleAs: style with style. Only the idle bob and a fade-in: the web gestures (wave, dots, hop) stay on the web.
The parts' colours are the accent, then warning, success, secondary text and danger: apart in every brand. A group of parts is one element whose name lists each part and its value.
Folded only: previous / next and “Page 3 of 12”, the form a thumb reaches; no numbers, no links, no page size. labels is required (previous, next, compact).
name and caption are strings; no nameAs, no icon. ProfileBanner: title, eyebrow and meta are strings; the cover is an Image or a tint of the brand's accent. One look: no arcade flavour on mobile. The gauges fill once on mount (animated), not on scroll.
One component with options (value, label, description, hint, disabled) and variant — no Item / Card / Button / Segment parts. Each press plays a haptic when the app passes haptics: impact for a tactile key, selection otherwise. error shows under the group and is announced.
No shortcut and no suggestions: the keyboard's search key submits, and results are a screen of their own. clearLabel is required; role="searchbox" names the input. cancelLabel with onCancel adds the platform's Cancel button beside the field.
Only the rows: SettingsGroup (a titled card of hairline-divided rows) and SettingsRow (icon tile, label, help, value or control, a chevron when onPress opens something). The sections-on-the-side layout is a web idea; on a phone each section is a screen. A row with onPress is a button named by its visible words; a row with a trailing control (a Switch) leaves the control as the thing to press.
Drawn by the theme with a pan responder: drag anywhere on the track, the nearest thumb follows; a selection haptic at each step passed (the app's haptics). Each thumb is an adjustable control for VoiceOver and TalkBack: swipe up or down by a step, its value read as words. floatingValue shows the value over the thumb while it is dragged ("always": at rest too).
It takes the state's label, tone and moves already resolved (movesFrom of @krizaka/organize/contract, in the person's language): /native adds no dependency. The menu is an action sheet; a reason is a second sheet.
The card tilts with the finger and a stamp (LIKE / NOPE) says the decision; a medium tick marks it. PersonCard pages its photos with a tap on a side; screen readers swipe up and down.
Drawn by the theme, not the system's: the same switch on iOS and Android, the accent when on, a selection haptic when it flips (the app's haptics). showLabel makes it a settings row: the label and its description beside the switch, the whole row pressable, the description read as the hint. error shows under the row and is announced.
items (value, label, count, content) instead of the web's parts. The underlined tab list scrolls sideways when it does not fit; for the app's main sections use TabBar. hue is on each item; add is a prop of Tabs (no routes on a phone: the selection is the screen's state).
ThemeProvider takes the product's colour roles (overrides) and fonts; there is no ThemeScript and no toggle. useTheme() returns the resolved theme (colour roles), scheme, radius and motion for StyleSheet. The mode is not persisted: the app stores it from onModeChange.
Toaster takes offset (the safe-area inset) instead of a position; mount it inside ThemeProvider. Actions take onPress; a toast takes onPress to open what it is about. No toast.custom: an icon before the text instead. A sideways swipe dismisses a toast; its tone plays a haptic when the app gives haptics. A snackbar is Toaster position="bottom" with one action.
Its own entry (@krizaka/ui/native/vertical-video): it plays on expo-video, an optional peer. uri and posterUri instead of src and poster; creator.avatarUri; a long press likes (there is no double click). ShortFeed pages a FlatList: give it the page's height; the slide in view is the viewable one.
Its own entry, @krizaka/ui/native/video-player, on expo-video (an optional peer): an app that plays no video installs nothing. The platform's controls (nativeControls, default true): accessible, full screen and picture in picture by the system. source is an object (uri, contentType, headers); paused stops it off screen (a FlatList's viewability).
Same API. The bars breathe on the native driver; under reduced motion or while the app is in the background they stay still. No intersection observer on the phone: a waveform scrolled out of view keeps moving until its screen unmounts it.