notque/vexjoy-agent / skills/frontend/frontend
frontend
UnverifiedFrontend: UI design, distinctive visual styles, HTML artifacts, Three.js 3D, TypeScript/React/Next.js apps, e-commerce, portfolios, React Native, web performance.
references/react-native/navigation-patterns.md
View on GitHub# Navigation Patterns Reference
<!-- Loaded via react-native.md when task involves navigation, stacks, tabs, expo-router, react-navigation, screen transitions -->
## Use Native Navigators for Stacks and Tabs
**Impact:** HIGH — native transitions, platform UI, system integration
Native navigators use platform APIs (UINavigationController / Fragment). JS-based navigators reimplement in JavaScript — slower, missing platform nuances.
### Stack
**Instead of:**
```tsx
import { createStackNavigator } from '@react-navigation/stack'
```
**Use:**
```tsx
import { createNativeStackNavigator } from '@react-navigation/native-stack'
const Stack = createNativeStackNavigator()
```
With expo-router, `<Stack />` already uses native-stack.
### Tabs
**Instead of:**
```tsx
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
```
**Use:**
```tsx
import { createNativeBottomTabNavigator } from '@bottom-tabs/react-navigation'
const Tab = createNativeBottomTabNavigator()
```
With expo-router:
```tsx
import { NativeTabs } from 'expo-router/unstable-native-tabs'
```
---
## Prefer Native Header Options Over Custom Components
**Impact:** MEDIUM — automatic large titles, search bars, blur effects, safe areas
**Instead of:**
```tsx
<Stack.Screen name="Profile" options={{ header: () => <CustomHeader title="Profile" /> }} />
```
**Use:**
```tsx
<Stack.Screen
name="Profile"
options={{
title: 'Profile',
headerLargeTitleEnabled: true,
headerSearchBarOptions: { placeholder: 'Search' },
}}
/>
```
Native headers handle safe areas, blur effects, and scroll behavior automatically. iOS native tabs also enable `contentInsetAdjustmentBehavior` on the first ScrollView.
---
## Benefits of Native Navigators
- **Performance**: Transitions and gestures on UI thread
- **Platform behavior**: iOS large titles, Android material design, system back gesture
- **System integration**: Scroll-to-top on tab tap, correct safe areas
- **Accessibility**: Platform features work automatically
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |