refactor: migrate NavigationProvider and MainFlow to native stack#31668
refactor: migrate NavigationProvider and MainFlow to native stack#31668weitingsun wants to merge 2 commits into
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
e6cf219 to
a2138c5
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
a2138c5 to
bcd367f
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why all tags are selected:
Every feature area (accounts, confirmations, identity, networks, swaps, staking, browser, snaps, etc.) relies on navigation working correctly. A regression in the root navigator would manifest across all test suites. Conservative approach is warranted here. Performance Test Selection: |
⚡ Performance Test Results
❌ 1 test failed · 11 tests · 1 device 📱 Devices tested (1)Android: Google Pixel 8 Pro (v14.0) ❌ Failed Tests (1)@metamask-onboarding-team
✅ Passed Tests (10)
Branch: |
Description
This PR continues the incremental migration from @react-navigation/stack (JS stack) to @react-navigation/native-stack, working from the outside in. It updates the two outermost navigators that wrap the rest of the app:
NavigationProvider — root navigation container wrapper
MainFlow (app/components/Nav/Main/index.js) — stack that hosts the main app shell and ReviewModal
Changelog
CHANGELOG entry:null
Related issues
Fixes:https://consensyssoftware.atlassian.net/browse/MCWP-631
Manual testing steps
Screenshots/Recordings
Android after:
https://github.com/user-attachments/assets/2ce8fa2c-2c89-46cd-b9da-302adb09ee22
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist