name: expo-ui-swift-ui
description: @expo/ui/swift-ui package lets you use SwiftUI Views and modifiers in your app.
The instructions in this skill apply to SDK 55 only. For other SDK versions, refer to the Expo UI SwiftUI docs for that version for the most accurate information.
Installation
npx expo install @expo/ui
A native rebuild is required after installation (npx expo run:ios).
Instructions
Expo UI's API mirrors SwiftUI's API. Use SwiftUI knowledge to decide which components or modifiers to use.
Components are imported from @expo/ui/swift-ui, modifiers from @expo/ui/swift-ui/modifiers.
RNHostView is specifically for embedding RN components inside a SwiftUI tree. Example:
import { Host, VStack, RNHostView } from "@expo-ui/swift-ui";
import { Pressable } from "react-native";
<Host matchContents>
<VStack>
<RNHostView matchContents>
// Here, `Pressable` is an RN component so it is wrapped in `RNHostView`.
<Pressable />
</RNHostView>
</VStack>
</Host>;
1---2name: expo-ui-swift-ui3description: expo-ui-swift-ui4---56---7name: expo-ui-swift-ui8description: `@expo/ui/swift-ui` package lets you use SwiftUI Views and modifiers in your app.9---1011> The instructions in this skill apply to SDK 55 only. For other SDK versions, refer to the Expo UI SwiftUI docs for that version for the most accurate information.1213## Installation1415```bash16npx expo install @expo/ui17```1819A native rebuild is required after installation (`npx expo run:ios`).2021## Instructions2223- Expo UI's API mirrors SwiftUI's API. Use SwiftUI knowledge to decide which components or modifiers to use.24- Components are imported from `@expo/ui/swift-ui`, modifiers from `@expo/ui/swift-ui/modifiers`.25- When about to use a component, fetch its docs to confirm the API - https://docs.expo.dev/versions/v55.0.0/sdk/ui/swift-ui/{component-name}/index.md26- When unsure about a modifier's API, refer to the docs - https://docs.expo.dev/versions/v55.0.0/sdk/ui/swift-ui/modifiers/index.md27- Every SwiftUI tree must be wrapped in `Host`.28- `RNHostView` is specifically for embedding RN components inside a SwiftUI tree. Example:2930```jsx31import { Host, VStack, RNHostView } from "@expo-ui/swift-ui";32import { Pressable } from "react-native";3334<Host matchContents>35 <VStack>36 <RNHostView matchContents>37 // Here, `Pressable` is an RN component so it is wrapped in `RNHostView`.38 <Pressable />39 </RNHostView>40 </VStack>41</Host>;42```4344- If a required modifier or View is missing in Expo UI, it can be extended via a local Expo module. See: https://docs.expo.dev/guides/expo-ui-swift-ui/extending/index.md. Confirm with the user before extending.
Run npx skillmds add nimoqup046-collab/expo-ui-swift-ui in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
expo-ui-swift-ui It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
nimoqup046-collab (@nimoqup046-collab) published this skill. Their other Agent Skills are listed on their SkillMD profile.