How skrishnan2001/primeflix works
PrimeFlix is an Expo app for discovering movies, TV shows, and people using TMDb, with account sign-in and sign-up. The user enters through app initialization, then authentication state selects the authentication or user navigation stack; discovery and detail screens support browsing and searching entertainment content. The API layer builds locale-aware TMDb URLs, while Firebase handles account authentication. The README also describes recommendations, but sampled evidence does not show their implementation or routing. Unsampled screen-to-API links are omitted rather than inferred.
Main entry points: index.tsx Auth routing · authStack.tsx Sign-in routes · people.ts People API · api.ts TMDb URL builder
Components 24
App and navigation
- App setup
src/index.tsx - Auth routing
src/navigation/index.tsx - Sign-in routes
src/navigation/authStack.tsx - User routes
src/navigation/userStack.tsx - Sign in
src/screens/Authentication/SignIn.jsx - Sign up
src/screens/Authentication/SignUp.jsx - Auth state
src/hooks/useAuth.ts
Discovery and browsing
- Discover
src/screens/Discover/index.tsx - Search
src/screens/Search/index.tsx - Trends
src/screens/Trend/index.tsx - Genre browsing
src/screens/Genres/index.tsx - Genre results
src/screens/Genre/index.tsx - Collections
src/screens/Collection/index.tsx
Catalog details
- Movie details
src/screens/Movie/index.tsx - TV details
src/screens/TvShow/index.tsx - People details
src/screens/People/index.tsx - Images
src/screens/Images/index.tsx - Video
src/screens/Video/index.tsx
External services
- Search API
src/api/search.ts - People API
src/api/people.ts - TMDb URL builder
src/api/api.ts
Other components
- Viewer
- TMDb
- Firebase Auth
Connections 17
- Viewer → App setup: opens
README.md - App setup → Auth routing: renders
src/index.tsx - Auth routing → Auth state: reads state
src/navigation/index.tsx - Auth routing → Sign-in routes: routes signed-out
src/navigation/index.tsx - Auth routing → User routes: routes signed-in
src/navigation/index.tsx - Auth routing → User routes: shows loading
src/navigation/index.tsx - Sign-in routes → Sign in: registers screen
src/navigation/authStack.tsx - Sign-in routes → Sign up: registers screen
src/navigation/authStack.tsx - Sign in → Firebase Auth: signs in
src/screens/Authentication/SignIn.jsx - Sign up → Firebase Auth: creates account
src/screens/Authentication/SignUp.jsx - Auth state → Firebase Auth: observes session
src/hooks/useAuth.ts - Search → Search API: requests results
- Search API → TMDb URL builder: builds request URL
src/api/search.ts - TMDb URL builder → TMDb: queries
- People details → People API: loads profile data
src/screens/People/index.tsx - People API → TMDb URL builder: uses API base
src/api/people.ts - People API → TMDb: fetches catalog data