Expo Native UI
Build production-quality native mobile apps with Expo Router following Apple Human Interface Guidelines and modern React Native patterns.
Installation
OpenClaw / Moltbot / Clawbot
npx clawhub@latest install expo-native-ui
WHAT This Skill Does
Guides implementation of native mobile apps using Expo Router with:
- File-based routing with native navigation stacks
- Native tab bars (NativeTabs) and iOS 26 features
- SF Symbols integration via expo-symbols
- Blur effects (expo-blur) and liquid glass (expo-glass-effect)
- Reanimated animations and gesture handling
- Native controls: Switch, Slider, SegmentedControl, DateTimePicker
WHEN To Use
- Building a new Expo Router app
- Adding native tab navigation
- Implementing iOS-style blur or liquid glass effects
- Creating smooth animations with entering/exiting transitions
- Integrating SF Symbols for icons
- Setting up route structure with groups and dynamic routes
KEYWORDS
expo router, react native, native tabs, sf symbols, expo blur, liquid glass, reanimated, ios, android, mobile app, navigation stack, form sheet, modal, context menu, link preview
References
Consult these resources for detailed implementation:
| Reference |
Purpose |
references/route-structure.md |
Route conventions, dynamic routes, groups, query params |
references/tabs.md |
NativeTabs, migration from JS tabs, iOS 26 features |
references/icons.md |
SF Symbols with expo-symbols, animations, weights |
references/controls.md |
Native iOS controls: Switch, Slider, DateTimePicker, Picker |
references/visual-effects.md |
Blur effects and liquid glass |
references/animations.md |
Reanimated: entering, exiting, layout, scroll-driven |
references/search.md |
Search bar integration, useSearch hook, filtering |
references/gradients.md |
CSS gradients via experimental_backgroundImage |
references/media.md |
Camera, audio, video, file saving |
references/storage.md |
SQLite, AsyncStorage, SecureStore |
references/webgpu-three.md |
WebGPU, Three.js for 3D graphics |
references/toolbar-and-headers.md |
Stack headers, toolbar customization (iOS) |
Core Principles
Running the App
Try Expo Go first before creating custom builds:
npx expo start # Scan QR with Expo Go
Custom builds (npx expo run:ios) only needed for:
- Local Expo modules (custom native code in
modules/)
- Apple targets (widgets, app clips via
@bacons/apple-targets)
- Third-party native modules not in Expo Go
Code Style
- Kebab-case file names:
comment-card.tsx
- Path aliases in tsconfig over relative imports
- Never co-locate components/utilities in
app/ directory
- Always ensure a route matches "/" (may be in a group)
- Escape nested backticks carefully in strings
Library Preferences
| Use |
Instead Of |
expo-audio |
expo-av |
expo-video |
expo-av |
expo-symbols |
@expo/vector-icons |
react-native-safe-area-context |
RN SafeAreaView |
process.env.EXPO_OS |
Platform.OS |
React.use |
React.useContext |
expo-image |
intrinsic img element |
expo-glass-effect |
custom blur views |
Responsiveness
// Always wrap root in ScrollView with automatic insets
<ScrollView contentInsetAdjustmentBehavior="automatic">
{children}
</ScrollView>
// Use useWindowDimensions, not Dimensions.get()
const { width, height } = useWindowDimensions();
// Flexbox over Dimensions API
<View style={{ flex: 1, flexDirection: 'row', gap: 16 }} />
Navigation Patterns
Link with Preview and Context Menu
import { Link } from 'expo-router';
<Link href="/settings">
<Link.Trigger>
<Pressable><Card /></Pressable>
</Link.Trigger>
<Link.Preview />
<Link.Menu>
<Link.MenuAction title="Share" icon="square.and.arrow.up" />
<Link.MenuAction title="Delete" icon="trash" destructive />
</Link.Menu>
</Link>
Form Sheet Modal
// In _layout.tsx
<Stack.Screen
name="sheet"
options={{
presentation: "formSheet",
sheetGrabberVisible: true,
sheetAllowedDetents: [0.5, 1.0],
contentStyle: { backgroundColor: "transparent" }, // Liquid glass on iOS 26+
}}
/>
Native Tabs Structure
app/
_layout.tsx — <NativeTabs />
(index,search)/
_layout.tsx — <Stack />
index.tsx
search.tsx
// app/_layout.tsx
import { NativeTabs, Icon, Label } from "expo-router/unstable-native-tabs";
export default function Layout() {
return (
<NativeTabs>
<NativeTabs.Trigger name="(index)">
<Icon sf="list.dash" />
<Label>Items</Label>
</NativeTabs.Trigger>
<NativeTabs.Trigger name="(search)" role="search" />
</NativeTabs>
);
}
Styling Guidelines
- Flex gap over margin/padding where possible
borderCurve: 'continuous' for rounded corners (not capsules)
boxShadow style prop, never legacy RN shadow/elevation
- Stack title instead of custom text elements for page headers
- Inline styles, not
StyleSheet.create unless reusing
fontVariant: 'tabular-nums' for numeric counters
selectable prop on Text displaying copiable data
// Shadow example
<View style={{ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)" }} />
// Continuous border curve
<View style={{ borderRadius: 12, borderCurve: 'continuous' }} />
Behavior Patterns
- Haptics: Use
expo-haptics conditionally on iOS
- Search bar: Prefer
headerSearchBarOptions in Stack.Screen
- Selectable text: Add
selectable prop to important data
- Format large numbers: 1.4M, 38k instead of 1,400,000
- Never use intrinsic elements (
img, div) outside DOM components
NEVER Do
- NEVER use legacy modules: Picker, WebView, SafeAreaView from react-native, AsyncStorage (old), expo-permissions
- NEVER use
Dimensions.get() — always useWindowDimensions
- NEVER co-locate components in the
app/ directory
- NEVER use
Platform.OS — use process.env.EXPO_OS
- NEVER use legacy shadow styles — use CSS
boxShadow
- NEVER start with custom builds — try Expo Go first
- NEVER use StyleSheet.create for one-time styles
- NEVER use
@expo/vector-icons — use expo-symbols
1---
2name: expo-native-ui
3model: standard
4version: 1.0.0
5description: >
6 Build beautiful native iOS/Android apps with Expo Router. Covers route structure,
7 native tabs, animations, blur effects, liquid glass, SF Symbols, and platform patterns.
8tags: [expo, react-native, ios, android, mobile, navigation, animations]
9metadata:
10 source: https://skillmd.com/skills/modbender/expo-native-ui
11---
12
13# Expo Native UI
14
15Build production-quality native mobile apps with Expo Router following Apple Human Interface Guidelines and modern React Native patterns.
16
17
18## Installation
19
20### OpenClaw / Moltbot / Clawbot
21
22```bash
23npx clawhub@latest install expo-native-ui
24```
25
26
27## WHAT This Skill Does
28
29Guides implementation of native mobile apps using Expo Router with:
30- File-based routing with native navigation stacks
31- Native tab bars (NativeTabs) and iOS 26 features
32- SF Symbols integration via expo-symbols
33- Blur effects (expo-blur) and liquid glass (expo-glass-effect)
34- Reanimated animations and gesture handling
35- Native controls: Switch, Slider, SegmentedControl, DateTimePicker
36
37## WHEN To Use
38
39- Building a new Expo Router app
40- Adding native tab navigation
41- Implementing iOS-style blur or liquid glass effects
42- Creating smooth animations with entering/exiting transitions
43- Integrating SF Symbols for icons
44- Setting up route structure with groups and dynamic routes
45
46## KEYWORDS
47
48expo router, react native, native tabs, sf symbols, expo blur, liquid glass, reanimated, ios, android, mobile app, navigation stack, form sheet, modal, context menu, link preview
49
50## References
51
52Consult these resources for detailed implementation:
53
54| Reference | Purpose |
55|-----------|---------|
56| `references/route-structure.md` | Route conventions, dynamic routes, groups, query params |
57| `references/tabs.md` | NativeTabs, migration from JS tabs, iOS 26 features |
58| `references/icons.md` | SF Symbols with expo-symbols, animations, weights |
59| `references/controls.md` | Native iOS controls: Switch, Slider, DateTimePicker, Picker |
60| `references/visual-effects.md` | Blur effects and liquid glass |
61| `references/animations.md` | Reanimated: entering, exiting, layout, scroll-driven |
62| `references/search.md` | Search bar integration, useSearch hook, filtering |
63| `references/gradients.md` | CSS gradients via experimental_backgroundImage |
64| `references/media.md` | Camera, audio, video, file saving |
65| `references/storage.md` | SQLite, AsyncStorage, SecureStore |
66| `references/webgpu-three.md` | WebGPU, Three.js for 3D graphics |
67| `references/toolbar-and-headers.md` | Stack headers, toolbar customization (iOS) |
68
69## Core Principles
70
71### Running the App
72
73**Try Expo Go first** before creating custom builds:
74
75```bash
76npx expo start # Scan QR with Expo Go
77```
78
79Custom builds (`npx expo run:ios`) only needed for:
80- Local Expo modules (custom native code in `modules/`)
81- Apple targets (widgets, app clips via `@bacons/apple-targets`)
82- Third-party native modules not in Expo Go
83
84### Code Style
85
86- **Kebab-case file names**: `comment-card.tsx`
87- **Path aliases in tsconfig** over relative imports
88- **Never co-locate** components/utilities in `app/` directory
89- **Always ensure** a route matches "/" (may be in a group)
90- **Escape nested backticks** carefully in strings
91
92### Library Preferences
93
94| Use | Instead Of |
95|-----|------------|
96| `expo-audio` | `expo-av` |
97| `expo-video` | `expo-av` |
98| `expo-symbols` | `@expo/vector-icons` |
99| `react-native-safe-area-context` | RN SafeAreaView |
100| `process.env.EXPO_OS` | `Platform.OS` |
101| `React.use` | `React.useContext` |
102| `expo-image` | intrinsic `img` element |
103| `expo-glass-effect` | custom blur views |
104
105### Responsiveness
106
107```tsx
108// Always wrap root in ScrollView with automatic insets
109<ScrollView contentInsetAdjustmentBehavior="automatic">
110 {children}
111</ScrollView>
112
113// Use useWindowDimensions, not Dimensions.get()
114const { width, height } = useWindowDimensions();
115
116// Flexbox over Dimensions API
117<View style={{ flex: 1, flexDirection: 'row', gap: 16 }} />
118```
119
120## Navigation Patterns
121
122### Link with Preview and Context Menu
123
124```tsx
125import { Link } from 'expo-router';
126
127<Link href="/settings">
128 <Link.Trigger>
129 <Pressable><Card /></Pressable>
130 </Link.Trigger>
131 <Link.Preview />
132 <Link.Menu>
133 <Link.MenuAction title="Share" icon="square.and.arrow.up" onPress={handleShare} />
134 <Link.MenuAction title="Delete" icon="trash" destructive onPress={handleDelete} />
135 </Link.Menu>
136</Link>
137```
138
139### Form Sheet Modal
140
141```tsx
142// In _layout.tsx
143<Stack.Screen
144 name="sheet"
145 options={{
146 presentation: "formSheet",
147 sheetGrabberVisible: true,
148 sheetAllowedDetents: [0.5, 1.0],
149 contentStyle: { backgroundColor: "transparent" }, // Liquid glass on iOS 26+
150 }}
151/>
152```
153
154### Native Tabs Structure
155
156```
157app/
158 _layout.tsx — <NativeTabs />
159 (index,search)/
160 _layout.tsx — <Stack />
161 index.tsx
162 search.tsx
163```
164
165```tsx
166// app/_layout.tsx
167import { NativeTabs, Icon, Label } from "expo-router/unstable-native-tabs";
168
169export default function Layout() {
170 return (
171 <NativeTabs>
172 <NativeTabs.Trigger name="(index)">
173 <Icon sf="list.dash" />
174 <Label>Items</Label>
175 </NativeTabs.Trigger>
176 <NativeTabs.Trigger name="(search)" role="search" />
177 </NativeTabs>
178 );
179}
180```
181
182## Styling Guidelines
183
184- **Flex gap** over margin/padding where possible
185- **`borderCurve: 'continuous'`** for rounded corners (not capsules)
186- **`boxShadow`** style prop, never legacy RN shadow/elevation
187- **Stack title** instead of custom text elements for page headers
188- **Inline styles**, not `StyleSheet.create` unless reusing
189- **`fontVariant: 'tabular-nums'`** for numeric counters
190- **`selectable` prop** on Text displaying copiable data
191
192```tsx
193// Shadow example
194<View style={{ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)" }} />
195
196// Continuous border curve
197<View style={{ borderRadius: 12, borderCurve: 'continuous' }} />
198```
199
200## Behavior Patterns
201
202- **Haptics**: Use `expo-haptics` conditionally on iOS
203- **Search bar**: Prefer `headerSearchBarOptions` in Stack.Screen
204- **Selectable text**: Add `selectable` prop to important data
205- **Format large numbers**: 1.4M, 38k instead of 1,400,000
206- **Never use** intrinsic elements (`img`, `div`) outside DOM components
207
208## NEVER Do
209
2101. **NEVER use** legacy modules: Picker, WebView, SafeAreaView from react-native, AsyncStorage (old), expo-permissions
2112. **NEVER use** `Dimensions.get()` — always `useWindowDimensions`
2123. **NEVER co-locate** components in the `app/` directory
2134. **NEVER use** `Platform.OS` — use `process.env.EXPO_OS`
2145. **NEVER use** legacy shadow styles — use CSS `boxShadow`
2156. **NEVER start** with custom builds — try Expo Go first
2167. **NEVER use** StyleSheet.create for one-time styles
2178. **NEVER use** `@expo/vector-icons` — use `expo-symbols`