navigation-patterns

Define type-safe React Navigation routes and headers with enums and useNavigationHeader.

3|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/guicheffer/devorch-cli --skill navigation-patterns-guicheffer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: navigation-patterns
Source: https://github.com/guicheffer/devorch-cli/tree/main/templates/skills/navigation/navigation-patterns
Command: npx skills add https://github.com/guicheffer/devorch-cli --skill navigation-patterns-guicheffer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines React Navigation implementation by providing type-safe route definitions and consistent header configurations, reducing boilerplate and preventing common navigation errors.

Core Features & Use Cases

  • Type-Safe Routes: Define navigation routes using enums for compile-time safety and autocompletion.
  • Consistent Headers: Use useNavigationHeader for standardized, theme-aware header styling and functionality.
  • Use Case: When building a new feature that requires navigating between multiple screens, use these patterns to define your routes as enums and configure headers consistently across all screens, ensuring a cohesive user experience and reducing bugs.

Quick Start

Use the navigation-patterns skill to configure a screen header with a title and a save button.

Frequently Asked Questions about navigation-patterns

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

FAQPage Schema
How do I prevent route typos in React Navigation with TypeScript?

Type-safe React Navigation prevents route typos by defining navigation routes using TypeScript enums. This approach provides compile-time safety and autocompletion, catching invalid route names during development rather than at runtime.

What's the best way to configure consistent headers across React Native screens?

Consistent headers in React Native are configured using the `useNavigationHeader` hook. It provides standardized, theme-aware header styling and functionality to ensure a cohesive UI experience and reduce styling inconsistencies across multiple screens.

How do I handle navigation with parameters in React Native using TypeScript?

Type-safe navigation with parameters in React Native is handled by defining route enums that enforce parameter types at compile time. This pattern ensures that required parameters are passed correctly between screens, preventing runtime errors.

Does this navigation pattern work for complex navigation flows in mobile development?

These React Navigation patterns address complex navigation flows by combining type-safe route definitions with standardized header configurations. This reduces boilerplate and prevents common errors when navigating between multiple screens in mobile development.

Why does my React Navigation implementation suffer from inconsistent UI?

Inconsistent UI in React Navigation typically stems from unstandardized header configurations. Applying the `useNavigationHeader` hook enforces consistent, theme-aware styling and functionality across all screens, resolving visual discrepancies.

navigation-patterns: What specific React Navigation challenges does this Skill address?

This Skill addresses React Navigation challenges including route typos, inconsistent UI, and complex navigation flows. It provides TypeScript enums for routes and a `useNavigationHeader` hook to ensure type safety and consistent header configuration.