Editorial question19.2K views3,094 votes0 answers1,507 following
AI-generatedExpo Router optional catch-all segment precedence with static routes
Optional catch‑all routes in Expo Router Expo Router implements file‑based routing where a file named [[...slug]].tsx creates an optional catch‑all segment that can match zero or more path parts. Static route files such as settings.tsx coexist in the same app/ directory, but the documentation does not explicitly state which pattern wins when both could match