Navigation and deep linking · core
React Navigation: navigators, native stack and auth flow
React Navigation builds screens from navigators (stack, native stack, bottom tabs, drawer) that you nest; the native stack uses the platform's own navigation on the UI thread, and an auth flow is done by rendering different screens for signed-in and signed-out users, not by resetting by hand.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- @react-navigation/native-stack uses react-native-screens: native transitions, gestures and headers on the UI thread. @react-navigation/stack is JS-based: fully custom transitions, but they stutter when JS is busy.
- Typical nesting: root stack → (Auth group | App group); App has bottom tabs; each tab has its own stack. Full-screen modals are root-stack screens with presentation: "modal", so the tab bar is hidden.
- Auth flow: render Auth screens when signed out and App screens when signed in. Changing the condition swaps the tree, so the user cannot go "back" to login.
- React Navigation 7.x (7.5) is the stable version. v8 is still alpha (native bottom tabs by default, better TypeScript).
- v7 static API (createStaticNavigation) gives typed config and automatic deep-link paths; the dynamic API still works.
- Tabs mount lazily. Hidden screens keep their effects running; freezeOnBlur (react-freeze) stops their re-renders; Expo Router SDK 58 adds activityEnabled built on React <Activity>.
- Expo Router is file-based routing; since SDK 56 it no longer depends on React Navigation (see the Expo track).
The red pen
Common traps: mistake → fix
Mistake: "Native stack cannot be customised"
Fix: it has many options (headers, presentation, animation), just not arbitrary JS transitions.
Mistake: "Call navigation.reset after login everywhere"
Fix: conditional screens are simpler and safer.
Mistake: "Put modals inside a tab's stack"
Fix: the tab bar stays visible; put them in the root stack.
Easy to hard
Questions interviewers ask, easy to hard
- native-stack vs stack: which did you use and why?
- Design the navigator tree: splash, auth stack, 4 tabs each with a stack, full-screen modals. How does logout work?
- Five heavy tabs make switching slow. How do you keep tab state without paying for hidden screens?
- Would you use Expo Router or React Navigation for a new app in 2026?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.