Expo Router · senior
Expo Router advanced: auth, links, native tabs and server features
Beyond basic screens, Expo Router gives protected routes, redirects, native tabs (the system tab bar, with Liquid Glass on iOS 26), +native-intent to rewrite incoming links, and, for web and server output, API routes, data loaders and SSR (stable in SDK 58), while React Server Components are still beta.
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
- Protected routes: when a Stack.Protected guard turns false, the user is sent to the anchor or first screen and that history is removed; redirectTo exists from SDK 58.
- Redirects: <Redirect href> or router.replace in the app; redirects and rewrites in app config apply to server output.
- Native tabs: import from expo-router/native-tabs (SDK 58; it was unstable-native-tabs in SDK 54–57). NativeTabs.Trigger with Icon (SF Symbols / Material), Label and Badge; the real system tab bar; Android allows at most 5 tabs; no nesting native tabs and no adding/removing tabs at runtime.
- +native-intent: export redirectSystemPath({ path, initial }) to rewrite links that arrive from outside (old URL formats, third-party links) before routing. Native only, runs outside your React tree.
- API routes: files ending in +api.ts export GET/POST using standard Request/Response. Router projects default to web.output: "server" in SDK 58. Deploy to EAS Hosting or a Node/Bun adapter; native apps must be told the server origin.
- Data loaders: export loader and read it with useLoaderData — stable in SDK 58. With static output they run at export time; with server output, on every request.
- React Server Components: still beta (experiments.reactServerFunctions), not compatible with EAS Update, not recommended for production.
- activityEnabled (SDK 58) hides inactive screens while keeping their state and cleaning up their effects (React Activity), a newer option than freezeOnBlur.
The red pen
Common traps: mistake → fix
Mistake: "Server components are production-ready in Expo"
Fix: beta, and they do not work with EAS Update.
Mistake: "Native tabs can have any number of tabs"
Fix: Android allows at most 5.
Mistake: "Protected routes are security"
Fix: they are navigation rules on the client.
Easy to hard
Questions interviewers ask, easy to hard
- How do you implement sign-in gating in Expo Router?
- A marketing link uses an old path format. How do you map it to the new route?
- Native tabs vs JS tabs: what do you gain and lose?
- What are API routes and loaders, and do they matter for a native-only app?
Practise
Practise with these questions
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.