Skip to content
TrademarkTrademark
Docs
React Native

React Native

Updated: October 18, 2026
View on GitHub

@once-ui-system/native brings Once UI's basic components to iOS and Android apps built with React Native. They take the same props as the web components and read the same design tokens, so a screen written with Once UI looks and reads the same on a phone.

It is a preview. Most apps should keep shipping Once UI on phones as the web build wrapped in a native shell (the Stack mobile target); use this package when the app itself has to be native.

A loyalty-card screen built with @once-ui-system/native

Install

Needs React 19, React Native 0.79 or later (Expo SDK 53 and up) and react-native-svg 15, which Expo includes. Preview versions are published to the next tag. The quick start covers Expo and bare React Native apps, safe areas and fonts.

Usage

Wrap the app in ThemeProvider. It takes the same style options as on the web, with the same defaults; theme="system" follows the device.

Components

Each component has its own page with examples, a props table and what differs from the web.

Dialog opens as a bottom sheet, and so do Select's options. ThemeProvider, useTheme(), IconProvider and fonts are on the config page.

Responsive props and safe areas

Flex, Row, Column and Card take the same breakpoint props as on the web (xl, l, m, s, xs), and safeArea pads a view clear of the notch and home indicator once the app passes the screen's insets to ThemeProvider. See responsive layouts and the quick start.

Differences from the web

  • Units. Numbers on spacing and size props are rem, as on the web. Rem follows the screen size: 15pt on phones, 16pt on tablets.
  • Touch. Pressed states replace hover, and small controls take taps from at least 44pt around them without being drawn larger.
  • Clipping. radius does not clip children. Pass overflow="hidden" when it should; on iOS that also hides the view's shadow.
  • Media shows images only. Enlarging on tap, videos and YouTube embeds are not supported.
  • Tabs have no arrow-key navigation, so activation has no effect.
  • Core 3.0 names. Accordion also takes defaultOpen and onOpenChange, Tabs takes onValueChange, and StatusIndicator takes scheme, so code written for 3.0 works here too.
  • Safe areas. The app passes the screen's safe areas to ThemeProvider, as shown below, instead of the browser providing them (see the quick start).

Design tokens

Both packages read one token export generated from the web package's SCSS tokens, so a token change reaches the web and native apps together. The same file ships as @once-ui-system/core/tokens.json for other tools, such as Figma or Swift and Kotlin code generators.

Edit this page on GitHub