Expo UI Guidelines
When to Use
Use this skill when you need complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.
References
Consult these resources as needed:
references/
animations.md Reanimated: entering, exiting, layout, scroll-driven, gestures
controls.md Native iOS: Switch, Slider, SegmentedControl, DateTimePicker, Picker
form-sheet.md Form sheets in expo-router: configuration, footers and background interaction.
gradients.md CSS gradients via experimental_backgroundImage (New Arch only)
icons.md SF Symbols via expo-image (sf: source), names, animations, weights
media.md Camera, audio, video, and file saving
route-structure.md Route conventions, dynamic routes, groups, folder organization
search.md Search bar with headers, useSearch hook, filtering patterns
storage.md SQLite, AsyncStorage, SecureStore
tabs.md NativeTabs, migration from JS tabs, iOS 26 features
toolbar-and-headers.md Stack headers and toolbar buttons, menus, search (iOS only)
visual-effects.md Blur (expo-blur) and liquid glass (expo-glass-effect)
webgpu-three.md 3D graphics, games, GPU visualizations with WebGPU and Three.js
zoom-transitions.md Apple Zoom: fluid zoom transitions with Link.AppleZoom (iOS 18+)
Running the App
CRITICAL: Always try Expo Go first before creating custom builds.
Most Expo apps work in Expo Go without any custom native code. Before running npx expo run:ios or npx expo run:android:
- Start with Expo Go: Run
npx expo start and scan the QR code with Expo Go
- Check if features work: Test your app thoroughly in Expo Go
- Only create custom builds when required - see below
When Custom Builds Are Required
You need npx expo run:ios/android or eas build ONLY when using:
- Local Expo modules (custom native code in
modules/)
- Apple targets (widgets, app clips, extensions via
@bacons/apple-targets)
- Third-party native modules not included in Expo Go
- Custom native configuration that can't be expressed in
app.json
When Expo Go Works
Expo Go supports a huge range of features out of the box:
- All
expo-* packages (camera, location, notifications, etc.)
- Expo Router navigation
- Most UI libraries (reanimated, gesture handler, etc.)
- Push notifications, deep links, and more
If you're unsure, try Expo Go first. Creating custom builds adds complexity, slower iteration, and requires Xcode/Android Studio setup.
Code Style
- Be cautious of unterminated strings. Ensure nested backticks are escaped; never forget to escape quotes correctly.
- Always use import statements at the top of the file.
- Always use kebab-case for file names, e.g.
comment-card.tsx
- Always remove old route files when moving or restructuring navigation
- Never use special characters in file names
- Configure tsconfig.json with path aliases, and prefer aliases over relative imports for refactors.
Routes
See ./references/route-structure.md for detailed route conventions.
- Routes belong in the
app directory.
- Never co-locate components, types, or utilities in the app directory. This is an anti-pattern.
- Ensure the app always has a route that matches "/", it may be inside a group route.
Library Preferences
- Never use modules removed from React Native such as Picker, WebView, SafeAreaView, or AsyncStorage
- Never use legacy expo-permissions
expo-audio not expo-av
expo-video not expo-av
expo-image with source="sf:name" for SF Symbols, not expo-symbols or @expo/vector-icons
react-native-safe-area-context not react-native SafeAreaView
process.env.EXPO_OS not Platform.OS
React.use not React.useContext
expo-image Image component instead of intrinsic element img
expo-glass-effect for liquid glass backdrops
Color from expo-router for native semantic colors, not raw PlatformColor (type-safe, auto-adapts to light/dark)
- In SDK 56+, never import from
@react-navigation/* directly — use expo-router/react-navigation instead (covers @react-navigation/native, /core, /elements, /routers)
Responsiveness
- Always wrap root component in a scroll view for responsiveness
- Use
<ScrollView contentInsetAdjustmentBehavior="automatic" /> instead of <SafeAreaView> for smarter safe area insets
contentInsetAdjustmentBehavior="automatic" should be applied to FlatList and SectionList as well
- Use flexbox instead of Dimensions API
- ALWAYS prefer
useWindowDimensions over Dimensions.get() to measure screen size
Behavior
- Use expo-haptics conditionally on iOS to make more delightful experiences
- Use views with built-in haptics like
<Switch /> from React Native and @react-native-community/datetimepicker
- When a route belon
1---2name: building-native-ui3description: Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.4---567# Expo UI Guidelines8## When to Use910Use this skill when you need complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.111213## References1415Consult these resources as needed:1617```18references/19 animations.md Reanimated: entering, exiting, layout, scroll-driven, gestures20 controls.md Native iOS: Switch, Slider, SegmentedControl, DateTimePicker, Picker21 form-sheet.md Form sheets in expo-router: configuration, footers and background interaction.22 gradients.md CSS gradients via experimental_backgroundImage (New Arch only)23 icons.md SF Symbols via expo-image (sf: source), names, animations, weights24 media.md Camera, audio, video, and file saving25 route-structure.md Route conventions, dynamic routes, groups, folder organization26 search.md Search bar with headers, useSearch hook, filtering patterns27 storage.md SQLite, AsyncStorage, SecureStore28 tabs.md NativeTabs, migration from JS tabs, iOS 26 features29 toolbar-and-headers.md Stack headers and toolbar buttons, menus, search (iOS only)30 visual-effects.md Blur (expo-blur) and liquid glass (expo-glass-effect)31 webgpu-three.md 3D graphics, games, GPU visualizations with WebGPU and Three.js32 zoom-transitions.md Apple Zoom: fluid zoom transitions with Link.AppleZoom (iOS 18+)33```3435## Running the App3637**CRITICAL: Always try Expo Go first before creating custom builds.**3839Most Expo apps work in Expo Go without any custom native code. Before running `npx expo run:ios` or `npx expo run:android`:40411. **Start with Expo Go**: Run `npx expo start` and scan the QR code with Expo Go422. **Check if features work**: Test your app thoroughly in Expo Go433. **Only create custom builds when required** - see below4445### When Custom Builds Are Required4647You need `npx expo run:ios/android` or `eas build` ONLY when using:4849- **Local Expo modules** (custom native code in `modules/`)50- **Apple targets** (widgets, app clips, extensions via `@bacons/apple-targets`)51- **Third-party native modules** not included in Expo Go52- **Custom native configuration** that can't be expressed in `app.json`5354### When Expo Go Works5556Expo Go supports a huge range of features out of the box:5758- All `expo-*` packages (camera, location, notifications, etc.)59- Expo Router navigation60- Most UI libraries (reanimated, gesture handler, etc.)61- Push notifications, deep links, and more6263**If you're unsure, try Expo Go first.** Creating custom builds adds complexity, slower iteration, and requires Xcode/Android Studio setup.6465## Code Style6667- Be cautious of unterminated strings. Ensure nested backticks are escaped; never forget to escape quotes correctly.68- Always use import statements at the top of the file.69- Always use kebab-case for file names, e.g. `comment-card.tsx`70- Always remove old route files when moving or restructuring navigation71- Never use special characters in file names72- Configure tsconfig.json with path aliases, and prefer aliases over relative imports for refactors.7374## Routes7576See `./references/route-structure.md` for detailed route conventions.7778- Routes belong in the `app` directory.79- Never co-locate components, types, or utilities in the app directory. This is an anti-pattern.80- Ensure the app always has a route that matches "/", it may be inside a group route.8182## Library Preferences8384- Never use modules removed from React Native such as Picker, WebView, SafeAreaView, or AsyncStorage85- Never use legacy expo-permissions86- `expo-audio` not `expo-av`87- `expo-video` not `expo-av`88- `expo-image` with `source="sf:name"` for SF Symbols, not `expo-symbols` or `@expo/vector-icons`89- `react-native-safe-area-context` not react-native SafeAreaView90- `process.env.EXPO_OS` not `Platform.OS`91- `React.use` not `React.useContext`92- `expo-image` Image component instead of intrinsic element `img`93- `expo-glass-effect` for liquid glass backdrops94- `Color` from `expo-router` for native semantic colors, not raw `PlatformColor` (type-safe, auto-adapts to light/dark)95- In SDK 56+, never import from `@react-navigation/*` directly — use `expo-router/react-navigation` instead (covers `@react-navigation/native`, `/core`, `/elements`, `/routers`)9697## Responsiveness9899- Always wrap root component in a scroll view for responsiveness100- Use `<ScrollView contentInsetAdjustmentBehavior="automatic" />` instead of `<SafeAreaView>` for smarter safe area insets101- `contentInsetAdjustmentBehavior="automatic"` should be applied to FlatList and SectionList as well102- Use flexbox instead of Dimensions API103- ALWAYS prefer `useWindowDimensions` over `Dimensions.get()` to measure screen size104105## Behavior106107- Use expo-haptics conditionally on iOS to make more delightful experiences108- Use views with built-in haptics like `<Switch />` from React Native and `@react-native-community/datetimepicker`109- When a route belon