Mobile and desktop apps · Skill

Build native UI in Expo

build-native-ui-in-expo

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.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-native-ui-in-expo/raw' -o ~/'.claude/skills/build-native-ui-in-expo/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-native-ui-in-expo/files/LICENSE.txt' -o ~/'.claude/skills/build-native-ui-in-expo/LICENSE.txt'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-native-ui-in-expo/raw' -o '.cursor/skills/build-native-ui-in-expo/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-native-ui-in-expo/files/LICENSE.txt' -o '.cursor/skills/build-native-ui-in-expo/LICENSE.txt'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-native-ui-in-expo/raw' -o '.agents/skills/build-native-ui-in-expo/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-native-ui-in-expo/files/LICENSE.txt' -o '.agents/skills/build-native-ui-in-expo/LICENSE.txt'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

@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.
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.

Bundled files

Licence

Adapted from Expo / 650 Industries (expo/skills, expo-ui) (Copyright (c) 2025-present 650 Industries, Inc. (aka Expo)), MIT License. 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.

Licence: MIT License. Attribution when you reuse it: Based on work by Expo / 650 Industries (expo/skills, expo-ui) (Copyright (c) 2025-present 650 Industries, Inc. (aka Expo), MIT License), https://github.com/expo/skills/tree/a9e5bd3fa00b4e61f632e43f85da73aee1942582/plugins/expo/skills/expo-ui; adapted by TheSkillVault, https://theskillvault.ai