MetaMask / MetaMask/metamask-mobile
Upgrade to React Navigation v6
Open
@Cal-L is already working on this.
Since Sep 3, 2025.
team-mobile-platform
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
What is this about?
This task tracks the work to upgrade from React Navigation v5 -> v6. The goal is to eventually get to the latest version: v7 and possibly explore expo router in the future.
Migration docs from v5->v6 - https://reactnavigation.org/docs/6.x/upgrading-from-5.x/
Scenario
No response
Design
No response
Technical Details
- Update package dependencies to v6
- Fix state access on routes. ex.
app/util/general/index.js - Update
mode="modal"->presentation="modal" - Update
dangerouslycalls - Move
headerModetooptions - Audit
setParamcalls - Type ParamLists and apply to stack navigators
- Remove
createNavigationDetailssince navigation is now typed already - Fix types on
NavigationService.navigation.navigatecalls - Fix
navigation.Xmethod calls - Fix
useRoutetypes - Remove
useParamsin favor ofuseRoute
Threat Modeling Framework
No response
Acceptance Criteria
No response
Stakeholder review needed before the work gets merged
- Engineering (needed in most cases)
- Design
- Product
- QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- Security
- Legal
- Marketing
- Management (please specify)
- Other (please specify)
References
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.