← back to Homesonspec

apps/mobile/app/index.tsx

18 lines

import { Redirect } from 'expo-router';

/**
 * Root path ("/") entry point.
 *
 * Without an explicit `app/index.tsx`, expo-router has no route to match
 * the app's initial URL (`homesonspec:///`) and falls back to the internal
 * "+not-found" route - which has no actual screen registered in the root
 * Stack (app/_layout.tsx only declares the "(tabs)" group), leaving
 * navigation permanently unresolved behind the native splash screen.
 *
 * Redirect straight into the Browse tab so the app always has a real,
 * matchable initial route.
 */
export default function Index() {
  return <Redirect href="/(tabs)/browse" />;
}