migrate-to-static-config
Installation
SKILL.md
Migrating to Static Config
Goal
Convert React Navigation navigators from JSX-based dynamic setup to static configuration while preserving behavior, typing, and deep links.
When to use
You are migrating screens from Dynamic API to the Static API in React Navigation.
Adaptation policy
Treat the patterns in this skill as canonical starting points, not an exhaustive list. The absence of an exact matching example is not a blocker.
- Map local code to the closest pattern here and adapt it; infer an equivalent when the structure differs.
- Prefer the simplest migration that preserves behavior.
- Keep changes minimal and local, matching the existing code style and React Navigation's intended static API.
- Avoid bespoke abstractions unless the simpler patterns clearly cannot preserve behavior.