mcpField
E
expo-ui

expo-ui

github.com/pproencaDevelopment220133 installsUpdated 11w ago
Repository

About expo-ui

A reference skill for agents building iOS interfaces with Expo's `@expo/ui/swift-ui` and modifier APIs. It organizes SwiftUI bridge guidance into prioritized rules, including Host setup, layouts, controls, and iOS 26 composition.

Key features

  1. 0153 rules across eight categories
  2. 02Host and modifier guidance
  3. 03Layout and input control patterns
  4. 04iOS 26 composition guidance

Use cases

  1. 01Building screens with native SwiftUI views
  2. 02Migrating React Native primitives to SwiftUI components
  3. 03Reviewing or debugging `@expo/ui/swift-ui` code

Install

Copy the command and run it in a terminal.

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

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

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
gotchas.md
metadata.json
README.md
assets/templates/
_template.md
references/
_sections.md
display-chart-data-points.md
display-gauge-current-value-label.md
display-image-system-name.md
display-label-icon-vs-title.md
display-progress-indeterminate.md
display-text-markdown.md
hig-confirmation-dialog-destructive.md
hig-glass-effect-container.md
hig-no-glass-on-glass.md
hig-no-stacked-modals.md
hig-popover-iphone-fallback.md
hig-sheet-detents-partial.md
hig-tint-only-for-brand.md
host-color-scheme-explicit.md
host-ignore-safe-area.md
host-match-contents.md
host-viewport-size-for-form.md
host-wrap-all-swiftui-roots.md
input-button-role-for-destructive.md
input-button-systemimage.md
input-date-picker-range.md
input-picker-style-via-modifier.md
input-securefield-for-passwords.md
input-stepper-bounded.md

Details

From the project README

Expo @expo/ui SwiftUI Best Practices

Library reference for @expo/ui/swift-ui and @expo/ui/swift-ui/modifiers — the iOS surface of Expo's native UI bridge. Contains 53 rules across 8 categories, prioritised by cascade impact for agents building Expo apps that render to native SwiftUI views on iOS 26 and earlier.

When to Apply

Reference these guidelines when:

  • Building a new screen with @expo/ui/swift-ui — pick the right container (Form vs List vs ScrollView), wrap in Host correctly, apply modifiers
  • Migrating from React Native primitives (View, Text, TouchableOpacity) to native SwiftUI components
  • Targeting iOS 26 features — Liquid Glass material, GlassEffectContainer, new sheet detent behaviours
  • Reviewing code that imports from @expo/ui/swift-ui or @expo/ui/swift-ui/modifiers
  • Debugging "the SwiftUI view doesn't render / is the wrong size / ignores styles" — usually a Host or modifier issue
  • Composing presentation surfaces — Alert, ConfirmationDialog, BottomSheet, Popover — under HIG modality guidance
  • Writing controlled inputs (TextField, Toggle, Picker, Slider) with useNativeState and worklet writes

When NOT to Use This Skill

  • Android Jetpack Compose — this skill covers iOS SwiftUI only. The @expo/ui/jetpack-compose surface has its own conventions
  • Universal (cross-platform) components — @expo/ui exposes a small set; this skill scopes to the platform-specific iOS surface
  • Navigation routing — for stack/tab routing, use expo-router and expo-router/unstable-native-tabs; this skill covers UI composition only
  • Pre-iOS-17 fallbacks — most rules assume iOS 17 minimum; Liquid Glass rules require iOS 26

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Setup & Host BoundariesCRITICALhost-
2iOS 26 HIG Composition RulesCRITICALhig-
3Modifiers SystemCRITICALmod-
4Layout ComponentsHIGHlayout-
5Input & ControlsHIGHinput-
6Navigation & OverlaysHIGHnav-
7Display & FeedbackMEDIUM-HIGHdisplay-
8State & Cross-Cutting PatternsMEDIUMstate-

Quick Reference

1. Setup & Host Boundaries (CRITICAL)
2. iOS 26 HIG Composition Rules (CRITICAL)
3. Modifiers System (CRITICAL)
4. Layout Components (HIGH)
5. Input & Controls (HIGH)
6. Navigation & Overlays (HIGH)
7. Display & Feedback (MEDIUM-HIGH)
8. State & Cross-Cutting Patterns (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Each rule file contains:

  • Brief explanation of why it matters in the SwiftUI bridge
  • Incorrect code example anchored to a realistic domain
  • Correct code example with a minimal diff from the incorrect one
  • Where relevant: Alternative approach, When NOT to use, Warning callouts, authoritative reference URL

Gotchas

See gotchas.md — append entries as failure points surface during real use.

Related Skills

  • For Android Jetpack Compose components, the parallel skill would target @expo/ui/jetpack-compose
  • For navigation routing (stack, tabs), use expo-router directly
  • For form validation libraries, see the react-hook-form skill

Comments

Markdown supported