expo-ui

仓库创建 2026年7月2日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

明确 SDK 与平台差异,适合审查与实现跨平台界面时参考。

这个 Skill 做什么

关于 @expo/ui 组件、平台互操作性和 SDK 版本注意事项的参考手册。

讲清如何用 @expo/ui 做原生界面:iOS 用 SwiftUI、Android 用 Jetpack Compose、Web 用 DOM,能和 React Native 视图互操作。在开发或评审用 @expo/ui 的页面、组件和 modifier 时用得上。要注意版本兼容性——从 Expo SDK 56 开始稳定,旧版(SDK ≤55)的示例可能不可靠。

▸ 展开 SKILL.md 英文原文

Native UI with @expo/ui — SwiftUI on iOS, Jetpack Compose on Android, DOM on web — components, modifiers, and interop with React Native views. Use when building or reviewing screens that use @expo/ui.

开发编程UI组件Expo跨平台UI通用
0
Stars
0
Forks
35
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/stacks/expo-dev/skills/expo-ui/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/stacks/expo-dev/skills/expo-ui/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Expo UI Reference

## Versioning Ground Rules

- `@expo/ui` is **stable as of Expo SDK 56**. It ships in the default `create-expo-app` template and works in Expo Go (SDK 56+).
- The APIs went through breaking changes across SDK 53–55 (alpha/beta; Jetpack Compose support only landed in 55). **Examples targeting SDK ≤55 are unreliable** — pin all guidance, searches, and doc lookups to SDK 56+.

## The Host Rule

Every universal `@expo/ui` subtree must be rooted in a `Host`. `Host` is the bridge component: it takes React Native styles (flex, position, dimensions); everything inside it is native SwiftUI/Compose layout.

```tsx
import { Host, Column, Text, Button } from '@expo/ui';

export defa
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有