navigation-converter

Convert Flutter navigation calls into React Navigation with typed RootStackParamList.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/Saurav-snapwork/NewAppTemplate --skill navigation-converter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: navigation-converter
Source: https://github.com/Saurav-snapwork/NewAppTemplate/tree/main/.github/skills/navigation-converter
Command: npx skills add https://github.com/Saurav-snapwork/NewAppTemplate --skill navigation-converter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Flutter apps using Navigator, push/pop and named routes often struggle to migrate to React Navigation with preserved behavior and type safety. This skill provides a structured, table-driven approach to converting Flutter navigation constructs into React Navigation equivalents, generating typed route interfaces and a coherent navigator tree.

Core Features & Use Cases

  • Maps Flutter navigation patterns (Navigator.push, pushNamed, pop, pushReplacement, etc.) to React Navigation actions.
  • Generates a complete RootStackParamList with typed route parameters to prevent runtime crashes from undefined routes.
  • Supports nested navigators, tab navigators, and nested tabs, while producing ready-to-integrate navigator components.
  • Emits warnings for ambiguous tab placements, deep nesting, or unsupported Flutter navigations to guide manual review.

Quick Start

Use the converter on a Flutter project to generate React Navigation code with a typed RootStackParamList and AppNavigator.

Frequently Asked Questions about navigation-converter

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

FAQPage Schema
How do I convert Flutter navigation to React Navigation with type safety?

Converting Flutter navigation to React Navigation involves mapping Navigator.push and pushNamed calls to React Navigation actions and generating a typed RootStackParamList to prevent undefined routes.

What is a RootStackParamList and why do I need it for React Navigation?

A RootStackParamList defines typed route parameters for React Navigation, preventing runtime crashes from undefined routes by mapping Flutter navigation constructs into a structured, typed navigator tree.

Can I migrate Flutter nested navigators and BottomNavigationBar to React Navigation?

Yes, Flutter nested navigators and BottomNavigationBar can be migrated to React Navigation. The conversion supports nested and tab navigators, producing ready-to-integrate navigator components.

How do I handle ambiguous tab placements when migrating from Flutter to React Navigation?

Ambiguous tab placements during Flutter to React Navigation migration trigger emitted warnings to guide manual review, while validation checks catch routing inconsistencies during the table-driven mapping process.

Does the Flutter to React Navigation converter support pushReplacement and pop?

The Flutter to React Navigation converter supports pushReplacement and pop, applying a table-driven mapping to convert these Flutter navigation patterns into corresponding React Navigation actions.