Skip to main content

Expo Router (app/)

File-based like Next.js App Router, but screens are native, not HTML:
  • app/index.tsx → /, app/settings.tsx → /settings, app/(tabs)/home.tsx → /home (groups don’t add segments)
  • app/[id].tsx → dynamic — substitute a sample value
  • app/_layout.tsx → shared chrome; +not-found.tsx, +html.tsx → skip
Title: the screen component’s <Stack.Screen options={{ title }}> or navigationOptions, else the file name. Source: the screen file verbatim; imported components under components; styles from StyleSheet.create blocks, NativeWind/Tailwind classes, and constants/Colors.ts-style theme files.
UFL renders these as screens — native UI maps best when the component tree is self-contained. List every local component the screen imports under components.