xiaohongshu
xiaohongshu
expo-sdk
Expo SDK 54+ platform patterns. Use when configuring Expo apps, setting up root layouts, using expo-image, expo-haptics, safe areas, bottom sheets, FlashList, or StatusBar.
Full skill instructions
Expo SDK 54+ provides a managed React Native development environment with file-based routing (Expo Router), native module access, and streamlined build tooling. This skill covers app configuration, the root layout provider pattern, and key Expo/RN libraries.
Prerequisite: npx create-expo-app or Expo SDK 54+ in package.json
Setting up a new Expo demo:
npx create-expo-app [demo-name] --template blank-typescriptpnpm add expo-router expo-image expo-haptics react-native-reanimated react-native-gesture-handler react-native-safe-area-context @gorhom/bottom-sheet @shopify/flash-list lucide-react-native nativewind tailwindcss@3nativewind skill)app.json with scheme, name, splashpnpm start (Expo dev server)Adding a new library:
pnpm add [library]app.jsonnpx expo prebuildKey fields for demo apps:
| Field | Purpose |
|---|---|
expo.name | Display name |
expo.slug | URL-safe identifier |
expo.scheme | Deep link scheme (e.g., myapp) |
expo.orientation | portrait (default for demos) |
expo.splash | Splash screen configuration |
expo.ios.bundleIdentifier | iOS bundle ID |
expo.android.package | Android package name |
expo.plugins | Expo config plugins (e.g., expo-router) |
The root app/_layout.tsx wraps the entire app with providers. Standard order:
GestureHandlerRootView (flex: 1)
└── SafeAreaProvider
└── ThemeProvider / Context
└── Stack (Expo Router)
GestureHandlerRootView must be outermost (required by gesture handler and bottom sheets)SafeAreaProvider provides safe area insets to all descendants<Stack screenOptions={{ headerShown: false }} /> for custom headersUse expo-image for all image rendering — provides caching, blurhash placeholders, content-fit modes, and animated transitions.
Key props:
source — URI string or require() for local imagesplaceholder — blurhash string for loading statecontentFit — 'cover' | 'contain' | 'fill'transition — fade-in duration in ms (e.g., 300)Provide tactile feedback on interactions:
Haptics.selectionAsync() — light tap for selections, togglesHaptics.impactAsync(ImpactFeedbackStyle.Medium) — button press, card tapHaptics.notificationAsync(NotificationFeedbackType.Success) — action completionUse sparingly — haptics on every touch is annoying.
Account for device notch, status bar, and home indicator:
useSafeAreaInsets() — returns { top, bottom, left, right } in pointspaddingTop: insets.toppt-[${insets.top}px] or wrap in SafeAreaViewReplaces Radix Dialog for mobile modal patterns:
snapPoints={['25%', '50%', '90%']}backdropComponent with press-to-dismissBottomSheetScrollView for scrollable content inside sheetsGestureHandlerRootView as ancestorHigh-performance list rendering from @shopify/flash-list:
estimatedItemSize propestimatedItemSize={80} — estimated height of each item in pointscontentContainerClassName for NativeWind stylingIcon library for React Native (matches web lucide-react):
import { Home, Settings, ChevronRight } from 'lucide-react-native'size, color, strokeWidthConfigure status bar appearance per screen:
<StatusBar style="dark" /> for light backgrounds<StatusBar style="light" /> for dark backgroundsexpo-status-barGestureHandlerRootView with style={{ flex: 1 }}estimatedItemSize on all FlashList components_layout.tsx, not in individual screensuseSafeAreaInsets() for manual padding, SafeAreaView for simple wrappingImage instead of expo-imageFlatList for large datasets instead of FlashListGestureHandlerRootView (causes bottom sheet and gesture crashes)estimatedItemSize on FlashList (required prop, console warning)SafeAreaView inside ScrollView (causes layout issues)expo-router plugin in app.json plugins arrayxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience