---
name: build-native-ui-in-expo
description: Builds native sheets, switches, sliders and menus in an Expo project with @expo/ui, which renders SwiftUI on iOS and Jetpack Compose on Android. Use when the user wants a native bottom sheet, a native switch, or a settings-style group in Expo.
license: MIT
metadata:
  category: apps
  tags: "sheets-and-dialogs,buttons"
  author: johnny-bravo
  version: "1.0"
  updated: "2026-11-09"
  status: published
  aliases: "build-native-ui-in-expo, expo ui, native bottom sheet, swiftui compose"
  source_url: "https://github.com/expo/skills/tree/a9e5bd3fa00b4e61f632e43f85da73aee1942582/plugins/expo/skills/expo-ui"
  source_license: MIT
  copyright: "Copyright (c) 2025-present 650 Industries, Inc. (aka Expo)"
  original_author: "Expo / 650 Industries (expo/skills, expo-ui)"
  modified: "Adapted by TheSkillVault: rewritten as a short @expo/ui checklist (Host, sheet, switch, long lists stay virtualised); dropped the component catalogue and the instruction to avoid other libraries; added SDK check, gotchas and done-when. Independent how-to, not official Expo documentation."
  imported_on: "2026-11-09"
---

# Build native UI in Expo

`@expo/ui` draws real SwiftUI on iOS and Jetpack Compose on Android from React. Use it for a short settings group, a sheet, a switch or a menu. Keep a long feed on a virtualised list.

## When to use
- The user wants a native bottom sheet in an Expo project.
- A settings screen should look like grouped native rows, not a web form.
- A switch, slider or menu should be the platform control.

## When not to use
- Skip this for tabs or a stack. Those are a separate skill.
- The list is a long feed. `@expo/ui` List is a short grouped table, not a recycled list.
- The project is not Expo. Check `package.json` for an `expo` dependency first.

## Steps
1. Read the Expo SDK version in `package.json`. The universal components need a current SDK. If the project is older, say so and do not pretend the latest component exists.
2. Install with `npx expo install @expo/ui` so the version matches the SDK.
3. Wrap every `@expo/ui` tree in `Host`. A control outside `Host` will not show.
4. Use `BottomSheet` for a slide-up panel, `Switch` for a toggle, and `Menu` for a small menu. Keep the sheet content short.
5. Use `List` and `ListItem` only for a short, fixed group such as settings. For a feed, search results or anything of unknown length, use `FlatList` or FlashList.
6. Load the screen in Expo Go on a current SDK, once on iOS and once on Android if you can. Native controls do not look identical. That is expected.
7. If a component is missing from this SDK, use the React Native control and say which one you fell back to.

```tsx
import { Host, BottomSheet, Column, Text } from "@expo/ui";

export function Details() {
  return (
    <Host>
      <BottomSheet>
        <Column>
          <Text>Order details</Text>
        </Column>
      </BottomSheet>
    </Host>
  );
}
```

## Gotchas
- Do not put passwords, tokens or private balances in example rows.
- `List` does not recycle rows. A long `List` will get slow. Switch that screen to `FlatList`.
- This is an independent how-to adapted from Expo's skill. It is not official Expo documentation, and it was not run on a device in this library.

## Portability
SwiftUI and Jetpack Compose projects that are not Expo use those toolkits directly. If you use React Navigation only, a JS sheet library is fine until you adopt `@expo/ui`.

## Done when
- The sheet, switch or menu renders inside `Host` on the project's SDK.
- Long data uses a virtualised list, not `@expo/ui` List.
- The file says which SDK it was written for.

## Example prompt
"Show a native bottom sheet in this Expo app with @expo/ui, and keep the product feed on FlatList."

---
Adapted from "expo-ui" in expo/skills (MIT, Copyright (c) 2025-present 650 Industries, Inc. (aka Expo)). See LICENSE.txt.
