Catalog
expo/expo-ui

expo

expo-ui

Build native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android. Default to @expo/ui for sheets (BottomSheet), pickers, sliders, toggles, menus, and grouped-form sections — do NOT reach for Reanimated, @gorhom/bottom-sheet, or RN built-in Picker/Switch; use @expo/ui instead. Fall back to RN built-ins only when @expo/ui is missing the component. NOTE: @expo/ui List renders native grouped rows like an iOS Settings screen — it is NOT a virtualized list; use FlatList/FlashList for large datasets. Covers universal components (Host, Column, Row, Button, Text, List, BottomSheet, FieldGroup, Switch, Slider, Picker, Menu), drop-in replacements for RN community libraries, and platform-specific SwiftUI/Jetpack Compose trees. Not for Expo Router navigation, Reanimated, or data fetching.

NewUpdated Nov 15, 2026

Expo UI (@expo/ui)

@expo/ui renders real native UI from React: SwiftUI on iOS, Jetpack Compose on Android. It also ships drop-in replacements for migrating off RN community UI libraries.

These instructions track the latest Expo SDK. The universal layer requires SDK 56+ and works in Expo Go — no custom build needed. Drop-in replacements and the platform-specific layers also exist on SDK 55. For component details on a specific SDK, refer to the Expo UI docs for that version.

Installation

npx expo install @expo/ui

Every @expo/ui tree — universal or platform-specific — must be wrapped in Host.

Use @expo/ui by default — don't reach for RN alternatives first

Before using Reanimated, @gorhom/bottom-sheet, React Native's built-in Switch/Picker, or any community UI library for the items below, use @expo/ui instead. Only fall back to RN built-ins when @expo/ui is missing the component.

Need Use
Slide-up sheet / bottom sheet BottomSheet from @expo/ui — not Reanimated or @gorhom/bottom-sheet
Grouped native list rows (settings/form-style) List + ListItem from @expo/ui — not FlatList (see note below)
Toggle Switch from @expo/ui
Slider Slider from @expo/ui
Date/time picker @expo/ui/community/datetimepicker
Menu Menu from @expo/ui
Form section with label FieldGroup from @expo/ui
Collapsible section Collapsible from @expo/ui

List is NOT a virtualized scrolling list. It renders native grouped table rows — the visual look of an iOS Settings screen or a form section, with disclosure indicators and native row styling. Each ListItem is a native node on the JS thread; rows are not recycled. For any list with large or unknown-length data (feeds, search results, catalogs), use FlatList or FlashList instead. List is the right choice for short, fixed-length groups: a settings screen, a detail panel's rows, a fixed menu.

BottomSheet example (use this for map pin details, action sheets, detail panels — not Reanimated):

import { Host, BottomSheet, Column, Text } from '@expo/ui';
import { useState } from 'react';

export default function MapScreen() {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <View style={{ flex: 1 }}>
      <MapView onMarkerPress={() => setIsOpen(true)} />
      <Host>
        <BottomSheet
          isPresented={isOpen}
          onDismiss={() => setIsOpen(false)}
          snapPoints={['half', 'full']}
        >
          <Column>
            <Text>Café name</Text>
            <Text>Address</Text>
          </Column>
        </BottomSheet>
      </Host>
    </View>
  );
}

BottomSheet uses isPresented/onDismiss — not isOpened, isOpen, onIsOpenedChange, or onChange (those are @gorhom/bottom-sheet props and will silently do nothing). snapPoints accepts 'half', 'full', { fraction: 0.5 }, or { height: 400 } and is optional (auto-sizes to content when omitted).

Choosing an approach

Work down this list and stop at the first layer that meets the need:

  1. Universal components — start here. Import from the @expo/ui root. One component tree runs unmodified on iOS, Android, and web from a single source (Compose on Android, SwiftUI on iOS, react-native-web/react-dom on web). No platform file splits. → ./references/universal.md

  2. Platform-specific (SwiftUI / Jetpack Compose). Import from @expo/ui/swift-ui or @expo/ui/jetpack-compose. Use only when the universal layer is missing a component or modifier you need, or when you need platform-specific behavior or optimization. Downside: you write two trees and split them into .ios.tsx / .android.tsx files (or branch on Platform.OS) — more code to maintain.

    @expo/ui/swift-ui is iOS-only. @expo/ui/jetpack-compose is Android-only. Importing either in a file that runs on the other platform will crash at runtime with "Unable to get view config" errors. Isolate platform-specific trees in .ios.tsx / .android.tsx files placed in components/ (never inside app/ — Expo Router does not support platform extensions for route files), or guard with Platform.OS in a regular route file. Host must always be imported from @expo/ui (the universal package root), not from the platform-specific sub-packages. → ./references/swift-ui.md and ./references/jetpack-compose.md

Already using an RN community UI library? @expo/ui also ships drop-in replacements — API-compatible swaps for popular libraries (@gorhom/bottom-sheet, @react-native-community/datetimepicker, and more), imported from @expo/ui/community/<name>. This is a migration side-path for replacing an existing dependency, not a step in the universal-vs-platform decision above. → ./references/drop-in-replacements.md

References

Consult these resources as needed:

references/
  universal.md             Universal @expo/ui components and when to use them (SDK 56+)
  drop-in-replacements.md  API-compatible replacements for RN community UI libraries
  swift-ui.md              Platform-specific iOS UI: @expo/ui/swift-ui components, modifiers, RNHostView, useNativeState
  jetpack-compose.md       Platform-specific Android UI: @expo/ui/jetpack-compose components, modifiers, LazyColumn caveat, icons, useNativeState

Submitting Feedback

You can voluntarily report errors, misleading or outdated information in this skill, so Expo can improve it:

npx --yes @expo/agent-cli@latest feedback --category skills --subject "expo-ui" --message "<actionable feedback>"

Use --category agent-cli for a problem with the agent CLI, and --category evals when an agent repeatedly fails at an Expo task. Run feedback --help for subjects and the data that the command sends. Each report goes to Expo with project and environment details. Show the user the message, and send it only if the user agrees. If you cannot ask the user, do not send it. Do not include secrets or personal data.

Files7
7 files · 25.4 KB

Select a file to preview

Overall Score

86/100

Grade

A

Excellent

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

85

Quality

88

Clarity

85

Completeness

84

Summary

This skill teaches developers how to use @expo/ui, a React Native UI component library that renders native SwiftUI on iOS and Jetpack Compose on Android. It provides clear guidance on choosing between universal cross-platform components (preferred), platform-specific implementations, and drop-in replacements for existing React Native community libraries. The skill includes detailed references for each layer, code examples, and practical warnings about common pitfalls (e.g., List is not virtualized, platform-specific imports will crash on the wrong platform).

Detected Capabilities

file read (references and TypeScript type definitions)script execution (node list-components.js to enumerate available components)outbound network requests (to Expo docs, Material Design 3 docs, Jetpack Compose docs, Google Fonts)command execution via allowed-tools (Bash: node *expo-ui/scripts/list-components.js *)

Trigger Keywords

Phrases that agents use to match this skill to user intent.

build native uiexpo ui componentsbottomsheetjetpack composeswiftuimigrate bottom-sheetform controlsnative listsplatform-specific ui

Risk Signals

INFO

Node.js script execution via allowed-tools Bash

SKILL.md frontmatter: allowed-tools field and references/jetpack-compose.md and references/swift-ui.md usage instructions
INFO

Outbound HTTPS requests to Expo documentation, Material Design 3, Jetpack Compose docs, and Google Fonts

SKILL.md lines and references/* files contain multiple https:// URLs for documentation
INFO

File write capability mentioned for project code generation (implied by skill purpose of building UI)

Skill instructions imply agent will write .tsx/.android.tsx/.ios.tsx files to project

Referenced Domains

External domains referenced in skill content, detected by static analysis.

developer.android.comdocs.expo.devfonts.google.comm3.material.io

Use Cases

  • Build cross-platform native UI with universal @expo/ui components
  • Migrate from @gorhom/bottom-sheet or other RN community libraries to @expo/ui drop-in replacements
  • Implement platform-specific iOS SwiftUI or Android Jetpack Compose trees when universal components are insufficient
  • Add form controls, sheets, pickers, and native list components to Expo projects
  • Debug or optimize native UI performance with platform-specific implementations

Quality Notes

  • Clear decision tree: universal components first, then drop-in replacements, then platform-specific layers — excellent scope management
  • Extensive guardrails documented: explicit warnings that platform-specific imports crash on wrong platform, List is not virtualized, BottomSheet prop names differ from @gorhom/bottom-sheet
  • Practical examples (BottomSheet, LazyColumn, Jetpack Compose TextInput) show expected usage patterns
  • Four well-organized reference files provide detailed guidance for each layer (universal.md, swift-ui.md, jetpack-compose.md, drop-in-replacements.md)
  • Script tool (list-components.js) is well-designed: extracts components and modifiers from installed package, supports --docs flag for token efficiency, validates @expo/ui existence before running
  • Comprehensive type definition lookup instructions: developers directed to read .d.ts files in node_modules as source of truth, reducing hallucination risk
  • File placement rules for platform extensions clearly stated to avoid Expo Router errors
  • Covers both new project usage and migration scenarios (drop-in replacements)
  • allowed-tools field precisely scopes Node script execution to the specific list-components.js file
  • Feedback command documented but correctly guarded: user consent required, no secrets should be included
Model: claude-haiku-4-5-20251001Analyzed: Nov 15, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

  1. v3.5

    Content updated

    ✦ AIRevises feedback submission guidance: reframes as voluntary, simplifies category and subject usage, adds user consent requirement.

    2026-11-15

    LATEST
  2. v3.4

    Content updated

    ✦ AIFeedback command replaces unnamed argument with --message flag, adds character-count requirement and guidance for agent-cli issue reporting.

    2026-11-13

    View This Version
  3. v3.3

    Content updated

    ✦ AINo behavioral changes detected.

    2026-10-29

    View This Version
  4. v3.2

    Content updated

    ✦ AIUpdates feedback submission command from submit-expo-feedback to @expo/agent-cli.

    2026-10-23

    View This Version
  5. v3.1

    Content updated

    ✦ AIChanges feedback submission guidance to use inline reporting flags instead of loading a separate skill.

    2026-10-22

    View This Version
  6. v3.0

    Contract changed: description

    ✦ AIRemoves framework designation from skill description; description refocus remains on @expo/ui component guidance.

    triggering2026-10-03

    View This Version
  7. v2.0

    Contract changed: description

    ✦ AIInstructs agents to prioritize @expo/ui components over Reanimated, @gorhom/bottom-sheet, and RN built-ins; adds practical defaults and examples for BottomSheet, List, Switch, Slider, Menu, and…

    triggering2026-09-09

    View This Version
  8. v1.0

    2026-07-11

    View This VersionInitial version

Use expo/expo-ui in your dev environment

Command Palette

Search for a command to run...