/expo-stack:expo-stack-ui-kitfrom expo-stack
Routes UI decisions to Expo UI or community packages (TrueSheet, FlashList, gifted-charts, etc.) and documents Expo UI traps like ignoreSafeArea and matchContents.
Ships in expo-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Defer to expo/skills → expo-ui and lodev09/react-native-true-sheet for their own APIs. This skill is the routing table plus the traps.
Since SDK 56, Expo UI's SwiftUI/Jetpack Compose bindings are stable and in the default template, and they ship drop-in replacements for several community packages: date/time picker, segmented control, native picker, slider, masked view, and bottom sheet.
Prefer Expo UI when the surface should feel like the operating system — settings screens, pickers, standard controls. You get automatic dark mode, Material You on Android, Liquid Glass on iOS 26, and one dependency fewer.
Drop to a community package when Expo UI cannot do the job:
| Surface | Default | Fall back when |
|---|---|---|
| Sheet | Expo UI BottomSheet, or router formSheet presentation | You need custom detents, scrollable content, imperative present/dismiss, or web → @lodev09/react-native-true-sheet |
| Date / time | Expo UI DateTimePicker | You need web, or a mode Expo UI lacks → @react-native-community/datetimepicker |
| Segmented control, slider, picker, switch | Expo UI | rarely |
| List | @shopify/flash-list | Expo UI has no virtualised list — always FlashList |
| Charts | react-native-gifted-charts | Bespoke visuals → Skia |
| Calendar | react-native-calendars | |
| Swipeable pages | react-native-pager-view | |
| Keyboard | react-native-keyboard-controller | always — never KeyboardAvoidingView |
Every Expo UI screen needs a platform extension (.ios.tsx / .android.tsx) because it imports SwiftUI or Compose modifiers that do not exist on the other platform. See expo-stack-architecture.
Four things that are not obvious and each cost an afternoon:
ignoreSafeArea on Host. By default the SwiftUI hosting view tries to avoid the keyboard. If you are already handling the keyboard (and in this stack you are, via keyboard-controller), they fight and content jumps. Pass ignoreSafeArea="keyboard" — or "all" when the host holds a floating control that should not move at all.matchContents instead of guessing a size. A Host is a window onto the native view; if it is smaller than its content, presses outside the window are silently swallowed — the UI looks right and taps do nothing. Do not set a height you measured by eye and do not rely on flex: 1; pass matchContents and let it size itself.RNHostView to go back the other way. Inside a Host you may only use Expo UI components; a plain React Native View will crash. To embed RN content inside a SwiftUI/Compose tree, wrap it in RNHostView from expo-ui.Prefer a sheet over a Modal. A Modal is a web pattern; a native sheet with detents gets Liquid Glass on iOS 26, the correct drag-to-dismiss physics, and the right stacking.
Router-level (a route presented as a sheet):
<Stack.Screen
name="sign-in"
options={{ presentation: 'formSheet', sheetAllowedDetents: [0.45, 1] }}
/>
On Android use presentation: 'modal' with animation: 'slide_from_bottom'.
flex: 1 inside a native sheet works correctly as of Expo Router v55+ — bottom-aligned actions no longer need hacks or measured heights. If you find code working around this, it is stale.
Component-level (TrueSheet) when you need imperative control:
const sheet = useRef<TrueSheet>(null)
await sheet.current?.present()
await sheet.current?.dismiss()
<TrueSheet ref={sheet} detents={['auto', 1]}>…</TrueSheet>
TrueSheet v3 requires Fabric and RN ≥ 0.81 (use 2.x on the old architecture). It supports web, iPad/tablet side sheets, Liquid Glass on iOS 26, and handles its own keyboard adjustment.
@shopify/flash-list v2 — rebuilt for the New Architecture, JS-only.
import { FlashList, type FlashListRef } from '@shopify/flash-list'
<FlashList
data={items}
keyExtractor={(item) => item.id}
renderItem={({ item }) => <Row item={item} />}
ListEmptyComponent={<EmptyState />}
/>
v2 differences from v1 and from FlatList:
estimatedItemSize is gone; sizing is automatic. Passing it is stale code.keyExtractor is effectively required — without it, scrolling upward glitches as item layouts change.maintainVisibleContentPosition is on by default.MasonryFlashList is gone, replaced by a masonry prop.CellContainer is no longer exported — use a plain View.FlashListRef is a separate named export.Use a ScrollView for genuinely short, fixed content (a settings screen with four rows). Use a list as soon as the data comes from an API.
Make the list the screen's root component and set contentInsetAdjustmentBehavior="automatic" instead of wrapping in SafeAreaView. That gets you correct insets and the large-title collapse animation on iOS. Wrapping in SafeAreaView respects the notch but not the header, which is why the content still looks wrong — this is one of the most common AI-generated mistakes in Expo apps.
Use ListEmptyComponent and ListHeaderComponent rather than conditionals around the list; that is what keeps the list as the single root.
react-native-keyboard-controller, and specifically not KeyboardAvoidingView. Wrap the app in KeyboardProvider, then drive an animated spacer from the keyboard's per-frame height:
// src/hooks/use-gradual-animation.ts
import { useKeyboardHandler } from 'react-native-keyboard-controller'
import { useSharedValue } from 'react-native-reanimated'
const OFFSET = 42 // extra room when a KeyboardToolbar is present
export function useGradualAnimation() {
const height = useSharedValue(0)
useKeyboardHandler(
{
onMove: (e) => {
'worklet'
height.value = Math.max(e.height, 0)
},
},
[],
)
return { height, offset: OFFSET }
}
Then animate a View's height at the bottom of the screen — a fake view that grows with the keyboard and pushes content up. It tracks the keyboard's real animation curve frame by frame, which is what makes it feel native instead of snapping.
KeyboardToolbar for multi-field forms (next/previous/done). Test on an iPhone SE — the smallest screen exposes every keyboard bug, and if it works there it works everywhere.
react-native-gifted-charts for bar, line, area, pie and donut. Pair with a .web.tsx platform extension if the app targets web, since the native and web charting stories differ.
Reach for Skia only for visuals the library cannot express. Do not hand-draw a standard chart.
react-native-calendars for month/agenda views and marked dates. It is a large, mature, sometimes idiosyncratic library — check its own docs for prop shapes rather than guessing. For picking a single date, an Expo UI DateTimePicker is the better and lighter answer; use a calendar when the month view itself is the interface.
react-native-pager-view for swipeable full-screen pages — carousels, onboarding steps that must be swipeable, image galleries. When each page should have its own URL and back behaviour, use routes instead (see expo-stack-onboarding).
Pressable, never TouchableOpacity. TouchableOpacity is legacy: fewer events, worse accessibility, and nothing recommends it now.
Better still, wrap once with pressto, which bundles the press animation and haptics — see expo-stack-premium-ui.
@expo/vector-icons is being deprecated. Use the scoped @react-native-vector-icons/* packages (which now integrate with expo-font directly and work in Expo Go), plus:
npx @react-native-vector-icons/codemod, then verify with npx expo doctor.node_modules/@react-native-vector-icons/** font paths to the expo-font plugin config — that is a build error.@expo/vector-icons, the old react-native-vector-icons, and the scoped packages. Mixed packages render glyphs as ? or empty squares.Install only the packs you use — that is the whole point:
npx expo install @react-native-vector-icons/lucide
Two things the scoped packages add beyond parity: sets that never existed in the wrapper (Lucide among them), and type-checked icon names for custom sets built with createIconSetFromFontello / createIconSetFromIcoMoon. A custom brand icon set is now a generator away rather than a manual font-map, so there is no longer a reason to reach for a generic pack when the design calls for specific marks.
On iOS, expo-symbols (SF Symbols) is usually the better choice for system-looking icons.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/expo-stackScaffold, configure, diagnose, polish, and ship production Expo applications with the Expo Stack workflow in Codex./expo-stack-architectureFolder layout, the routes-only rule, platform file extensions, and monorepo/workspace wiring for an Expo Router app in this stack. Use when scaffolding a project, deciding where a new file belongs, adding a shared package, or fixing Metro resolution in a bun/pnpm/yarn workspace./expo-stack-asoApp Store Optimization as part of the build loop — the indexed metadata fields, keyword strategy, screenshots that rank as well as convert, review-prompt timing, and store localization matched to the app's locales. Use when preparing a store listing, choosing a title/subtitle/keywords, planning screenshots, adding a rating prompt, or asked why an app is not being found.npx claudepluginhub flyingwebie/skills --plugin expo-stackOther plugins' skills for the same job