navigation-patterns

Enforce centralized, type-safe navigation patterns for React Native apps using React Navigation.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/alejandro-technology/react-native-template --skill navigation-patterns-alejandro-technology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: navigation-patterns
Source: https://github.com/alejandro-technology/react-native-template/tree/main/.claude/skills/enforcement/navigation-patterns
Command: npx skills add https://github.com/alejandro-technology/react-native-template --skill navigation-patterns-alejandro-technology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces centralized, type-safe navigation architecture to prevent scattered navigation patterns and inconsistent route definitions across a React Native project.

Core Features & Use Cases

  • Enforces typed route definitions, centralized navigators, and consistent stack configurations.
  • Provides step-by-step guidance for adding feature stacks, wiring screens, and navigation hooks.
  • Use cases include adding new screens, wiring navigation flows, and reviewing navigation-related code.

Quick Start

Apply the navigation-patterns blueprint to your React Native project by integrating typed routes and structured navigators as described.

Frequently Asked Questions about navigation-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up type-safe navigation in React Native?

To set up type-safe navigation, define typed ParamLists and enums-based route definitions, then wire your screens with typed screen props to ensure consistent stack configurations across your React Native app.

What is the best way to structure React Navigation stacks for public and private routes?

Structure React Navigation stacks by maintaining centralized root configurations that explicitly separate public and private stacks, enforcing typed route definitions and consistent stack configurations throughout the project.

How do I add a new screen to a React Navigation stack with typed routes?

To add a new screen with typed routes, update the typed ParamList with the new route, define its enum, wire it into the stack navigator, and pass typed screen props to the screen component.

Does this navigation pattern work with existing React Navigation hooks?

Yes, this pattern integrates with React Navigation hooks by enforcing typed screen props, ensuring that hook-based navigation actions and route parameters remain fully type-safe across all feature stacks.

Why do I get type errors when passing params between React Navigation screens?

Type errors occur when screen parameters do not match the typed ParamList definitions, which this pattern resolves by enforcing centralized, enums-based route definitions and typed screen props across all navigators.

When should I not use centralized stack configurations for React Navigation?

Centralized stack configurations are not recommended for React Navigation when your project avoids typed routes entirely or operates with a very small, single-screen codebase that does not require strict architectural enforcement.