mcpField
E
expo-ui-swift-ui

expo-ui-swift-ui

github.com/expoDesign & UI3.9k295 installsUpdated 2d ago
Repository

About expo-ui-swift-ui

expo-ui-swift-ui is a skill for building interfaces with the SwiftUI-mirroring API in Expo UI. It targets Expo SDK 55 projects and explains component and modifier lookup, native rebuilding, and embedding React Native views in SwiftUI trees.

Key features

  1. 01SDK 55-specific guidance
  2. 02SwiftUI-style Expo UI API
  3. 03Component and modifier documentation lookup
  4. 04Host wrapping for SwiftUI trees
  5. 05React Native view embedding

Use cases

  1. 01Building SwiftUI-based Expo screens
  2. 02Checking component and modifier APIs
  3. 03Embedding React Native views in SwiftUI

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/expo/skills --skill expo-ui-swift-ui

After installing, type/expo-ui-swift-uiin Claude Code to confirm it loaded.

Bundled filesagents/openai.yaml

Details

From the project README

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

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>;

Comments

Markdown supported