Back to skills
SKILL.md
Navigation Patterns
ASecurityProvides React Navigation architecture and deep link validation patterns; use when designing mobile app navigation, implementing deep linking, or handling auth flows.
- 19 stars
- 0 votes
- 0 copies
- 0 views
- Added October 19, 2026
Security analysis
100/100npx -y skills add sawrus/agent-guides --skill navigation-patterns --agent claude-codeAre you the author of Navigation Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sawrus-navigation-patterns)---
name: navigation-patterns
description: "Provides React Navigation architecture and deep link validation patterns; use when designing mobile app navigation, implementing deep linking, or handling auth flows."
---
# Skill: Navigation Patterns (React Navigation)
## When to load
When designing app navigation, implementing deep linking, or handling auth flows.
## Architecture
```typescript
const RootNavigator = () => {
const { isAuthenticated, isLoading } = useAuth();
if (isLoading) return <SplashScreen />;
return (
<NavigationContainer linking={linking} ref={navigationRef}>
{isAuthenticated ? <AppNavigator /> : <AuthNavigator />}
</NavigationContainer>
);
};
const AppNavigator = () => (
<BottomTabs.Navigator>
<BottomTabs.Screen name="HomeTab" component={HomeStackNavigator} />
<BottomTabs.Screen name="ProfileTab" component={ProfileStackNavigator} />
</BottomTabs.Navigator>
);
```
## Deep Link Validation
```typescript
export const linking: LinkingOptions<RootStackParamList> = {
prefixes: ['myapp://', 'https://myapp.com'],
config: {
screens: {
HomeTab: {
screens: {
OrderDetail: {
path: 'orders/:orderId',
parse: { orderId: String },
// Sanitize: only alphanumeric and dashes
stringify: { orderId: (id) => id.replace(/[^a-zA-Z0-9-]/g, '') },
},
},
},
},
},
};
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.