Skip to content

Module 02 · Lesson 03

Screens are files: Expo Router

Every file in app/ becomes a screen.

Build screens7 min
FileScreen
app/index.tsxThe first screen (/)
app/orders.tsx/orders
app/orders/[id].tsx/orders/123: one order
app/(tabs)/_layout.tsxA tab bar wrapping the screens in (tabs)
import { Link } from "expo-router";
import { Text, View } from "react-native";

export default function Home() {
  return (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
      <Text>Home</Text>
      <Link href="/orders">See orders</Link>
    </View>
  );
}