# avinashpotnuru/movies-app-native architecture

> Architecture diagram of the GitHub repository avinashpotnuru/movies-app-native, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/avinashpotnuru/movies-app-native
- Repository: https://github.com/avinashpotnuru/movies-app-native

## Overview

Movies Explorer is a React Native app for discovering movies and TV shows, viewing media and cast details, and saving favorites or watchlist items. Users browse or search, refine results, open detail pages, and manage saved media; Firebase handles authentication and TMDB supplies catalog data. The graph preserves documented capabilities, while unsampled screens and hooks are grouped by their source directories. Relationships involving those unsampled modules are omitted unless the README or source index supports them.

Main entry points: [`src/hooks`](https://github.com/avinashpotnuru/movies-app-native/tree/main/src/hooks) (Discovery and search hooks), [`app`](https://github.com/avinashpotnuru/movies-app-native/tree/main/app) (Login and registration), [`src/screens/home-container.tsx`](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/home-container.tsx) (Home discovery), [`src/screens/media-details-container.tsx`](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/media-details-container.tsx) (Media detail screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_routes["Expo routes"]
end

subgraph group_discovery["Media discovery"]
  node_home["Home discovery<br/>[home-container.tsx]"]
  node_moviefilters["Movie filters"]
  node_tvfilters["TV filters"]
  node_discoveryhooks["Discovery and search hooks"]
  node_carousel["Media carousel"]
end

subgraph group_details["Media details"]
  node_mediadetail["Media detail screen"]
  node_castdetail["Cast detail screen<br/>[cast-overview.tsx]"]
  node_trailer["Trailer player<br/>[trailer-video.tsx]"]
  node_remoteimage["Remote images<br/>[remote-image.tsx]"]
end

subgraph group_accounts["Accounts and saved media"]
  node_authscreens["Login and registration"]
  node_profile["Profile screen"]
  node_saved["Favorites and watchlist"]
  node_authservice["Authentication service<br/>[authService.ts]"]
  node_firebase["Firebase Auth<br/>[firebase.ts]"]
  node_alert["App alerts<br/>[app-alert.tsx]"]
  node_authinput["Authentication input<br/>[auth-input.tsx]"]
end

subgraph group_services["Data services"]
  node_movieservice["Catalog API service<br/>[movies.service.ts]"]
  node_queryoptions["Query defaults<br/>[queryOptions.ts]"]
end

node_user(("App user"))
node_tmdb{{"TMDB API"}}

node_user -->|"opens"| node_routes
node_routes -->|"routes to"| node_mediadetail
node_routes -->|"routes to"| node_castdetail
node_user -->|"discovers media"| node_home
node_user -->|"filters movies"| node_moviefilters
node_user -->|"searches shows"| node_tvfilters
node_home -->|"uses queries"| node_discoveryhooks
node_home -->|"renders"| node_carousel
node_moviefilters -->|"uses queries"| node_discoveryhooks
node_tvfilters -->|"uses queries"| node_discoveryhooks
node_mediadetail -->|"renders"| node_trailer
node_user -->|"views cast"| node_castdetail
node_mediadetail -.->|"displays images"| node_remoteimage
node_user -->|"signs in"| node_authscreens
node_authscreens -->|"calls"| node_authservice
node_authscreens -->|"renders"| node_authinput
node_authscreens -->|"shows alerts"| node_alert
node_authservice -->|"uses auth"| node_firebase
node_user -->|"manages account"| node_profile
node_user -->|"manages saved media"| node_saved
node_discoveryhooks -->|"fetches data"| node_movieservice
node_discoveryhooks -->|"uses defaults"| node_queryoptions
node_movieservice -->|"requests catalog data"| node_tmdb

click node_routes "https://github.com/avinashpotnuru/movies-app-native/tree/main/app"
click node_home "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/home-container.tsx"
click node_moviefilters "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/movies-filter-container.tsx"
click node_tvfilters "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/tv-shows-filter-container.tsx"
click node_discoveryhooks "https://github.com/avinashpotnuru/movies-app-native/tree/main/src/hooks"
click node_carousel "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/movies-carousel.tsx"
click node_mediadetail "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/media-details-container.tsx"
click node_castdetail "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/cast-overview.tsx"
click node_trailer "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/trailer-video.tsx"
click node_remoteimage "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/remote-image.tsx"
click node_authscreens "https://github.com/avinashpotnuru/movies-app-native/tree/main/app"
click node_profile "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/profile-container.tsx"
click node_saved "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/saved-list-container.tsx"
click node_authservice "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/api/authService.ts"
click node_firebase "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/config/firebase.ts"
click node_alert "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/app-alert.tsx"
click node_authinput "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/auth-input.tsx"
click node_movieservice "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/api/movies.service.ts"
click node_queryoptions "https://github.com/avinashpotnuru/movies-app-native/blob/main/src/api/queryOptions.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routes,node_user toneBlue
class node_home,node_moviefilters,node_tvfilters,node_discoveryhooks,node_carousel toneAmber
class node_mediadetail,node_castdetail,node_trailer,node_remoteimage,node_tmdb toneMint
class node_authscreens,node_profile,node_saved,node_authservice,node_firebase,node_alert,node_authinput toneRose
class node_movieservice,node_queryoptions toneIndigo
```

## Components

### App navigation

- [Expo routes](https://github.com/avinashpotnuru/movies-app-native/tree/main/app): `app`

### Media discovery

- [Home discovery](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/home-container.tsx): `src/screens/home-container.tsx`
- [Movie filters](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/movies-filter-container.tsx): `src/screens/movies-filter-container.tsx`
- [TV filters](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/tv-shows-filter-container.tsx): `src/screens/tv-shows-filter-container.tsx`
- [Discovery and search hooks](https://github.com/avinashpotnuru/movies-app-native/tree/main/src/hooks): `src/hooks`
- [Media carousel](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/movies-carousel.tsx): `src/components/movies-carousel.tsx`

### Media details

- [Media detail screen](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/media-details-container.tsx): `src/screens/media-details-container.tsx`
- [Cast detail screen](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/cast-overview.tsx): `src/screens/cast-overview.tsx`
- [Trailer player](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/trailer-video.tsx): `src/components/trailer-video.tsx`
- [Remote images](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/remote-image.tsx): `src/components/remote-image.tsx`

### Accounts and saved media

- [Login and registration](https://github.com/avinashpotnuru/movies-app-native/tree/main/app): `app`
- [Profile screen](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/profile-container.tsx): `src/screens/profile-container.tsx`
- [Favorites and watchlist](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/screens/saved-list-container.tsx): `src/screens/saved-list-container.tsx`
- [Authentication service](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/api/authService.ts): `src/api/authService.ts`
- [Firebase Auth](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/config/firebase.ts): `src/config/firebase.ts`
- [App alerts](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/app-alert.tsx): `src/components/app-alert.tsx`
- [Authentication input](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/components/auth-input.tsx): `src/components/auth-input.tsx`

### Data services

- [Catalog API service](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/api/movies.service.ts): `src/api/movies.service.ts`
- [Query defaults](https://github.com/avinashpotnuru/movies-app-native/blob/main/src/api/queryOptions.ts): `src/api/queryOptions.ts`

### Other components

- **App user**
- **TMDB API**

## Connections

- App user → Expo routes: opens (evidence: `README.md`)
- Expo routes → Media detail screen: routes to (evidence: `app/media-details/[id].tsx`)
- Expo routes → Cast detail screen: routes to (evidence: `app/cast-details/[id].tsx`)
- App user → Home discovery: discovers media (evidence: `README.md`)
- App user → Movie filters: filters movies (evidence: `README.md`)
- App user → TV filters: searches shows (evidence: `README.md`)
- Home discovery → Discovery and search hooks: uses queries (evidence: `src/screens/home-container.tsx`)
- Home discovery → Media carousel: renders (evidence: `src/screens/home-container.tsx`)
- Movie filters → Discovery and search hooks: uses queries (evidence: `src/screens/movies-filter-container.tsx`)
- TV filters → Discovery and search hooks: uses queries (evidence: `src/screens/tv-shows-filter-container.tsx`)
- Media detail screen → Trailer player: renders (evidence: `src/screens/media-details-container.tsx`)
- App user → Cast detail screen: views cast (evidence: `README.md`)
- Media detail screen → Remote images: displays images
- App user → Login and registration: signs in (evidence: `README.md`)
- Login and registration → Authentication service: calls (evidence: `app/login.tsx`)
- Login and registration → Authentication input: renders (evidence: `app/login.tsx`)
- Login and registration → App alerts: shows alerts (evidence: `app/login.tsx`)
- Authentication service → Firebase Auth: uses auth (evidence: `src/api/authService.ts`)
- App user → Profile screen: manages account (evidence: `README.md`)
- App user → Favorites and watchlist: manages saved media (evidence: `README.md`)
- Discovery and search hooks → Catalog API service: fetches data (evidence: `src/hooks/useSearchTvShows.tsx`)
- Discovery and search hooks → Query defaults: uses defaults (evidence: `src/hooks/useSearchTvShows.tsx`)
- Catalog API service → TMDB API: requests catalog data (evidence: `README.md`)
