# sujeitoprogramador/youtube-app-filmes architecture

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

- Interactive diagram: https://gitdiagram.com/sujeitoprogramador/youtube-app-filmes
- Repository: https://github.com/sujeitoprogramador/youtube-app-filmes

## Overview

MyFilme is a React Native movie-discovery interface: the mobile app launches the registered JavaScript screen, which presents a movie carousel and details for the selected title over a remote-image background. The shown implementation has no search behavior, backend, or persistent movie store; its search field is presentational. The graph reflects the sampled JavaScript and Android startup code. Native iOS implementation details and any unsampled behavior are not inferred.

Main entry points: [`App.js`](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/App.js) (Movie screen), [`index.js`](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/index.js) (JS registration), [`android/app/src/main/java/com/myfilme/MainApplication.java`](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/android/app/src/main/java/com/myfilme/MainApplication.java) (Android app host), [`android/app/src/main/java/com/myfilme/MainActivity.java`](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/android/app/src/main/java/com/myfilme/MainActivity.java) (Android activity)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Mobile startup"]
  node_android_activity["Android activity<br/>[MainActivity.java]"]
  node_android_app["Android app host"]
  node_js_entry["JS registration<br/>[index.js]"]
end

subgraph group_browse["Movie browsing"]
  node_movie_screen["Movie screen<br/>[App.js]"]
  node_carousel["Carousel library"]
  node_movie_details["Selected movie details<br/>[App.js]"]
end

node_viewer(("Viewer"))
node_image_host["Remote image host"]

node_viewer -->|"opens app"| node_android_activity
node_android_app -->|"loads JS entry"| node_js_entry
node_js_entry -->|"registers screen"| node_movie_screen
node_viewer -->|"uses screen"| node_movie_screen
node_movie_screen -->|"configures carousel"| node_carousel
node_carousel -->|"reports selection"| node_movie_screen
node_movie_screen -->|"renders details"| node_movie_details
node_movie_screen -->|"loads images"| node_image_host

click node_android_activity "https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/android/app/src/main/java/com/myfilme/MainActivity.java"
click node_android_app "https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/android/app/src/main/java/com/myfilme/MainApplication.java"
click node_js_entry "https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/index.js"
click node_movie_screen "https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/App.js"
click node_movie_details "https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/App.js"

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_android_activity,node_android_app,node_js_entry,node_viewer toneBlue
class node_movie_screen,node_carousel,node_movie_details toneAmber
class node_image_host toneIndigo
```

## Components

### Mobile startup

- [Android activity](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/android/app/src/main/java/com/myfilme/MainActivity.java): `android/app/src/main/java/com/myfilme/MainActivity.java`
- [Android app host](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/android/app/src/main/java/com/myfilme/MainApplication.java): `android/app/src/main/java/com/myfilme/MainApplication.java`
- [JS registration](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/index.js): `index.js`

### Movie browsing

- [Movie screen](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/App.js): `App.js`
- **Carousel library**
- [Selected movie details](https://github.com/sujeitoprogramador/youtube-app-filmes/blob/master/App.js): `App.js`

### Other components

- **Viewer**
- **Remote image host**

## Connections

- Viewer → Android activity: opens app
- Android app host → JS registration: loads JS entry (evidence: `android/app/src/main/java/com/myfilme/MainApplication.java`)
- JS registration → Movie screen: registers screen (evidence: `index.js`)
- Viewer → Movie screen: uses screen
- Movie screen → Carousel library: configures carousel (evidence: `App.js`)
- Carousel library → Movie screen: reports selection (evidence: `App.js`)
- Movie screen → Selected movie details: renders details (evidence: `App.js`)
- Movie screen → Remote image host: loads images (evidence: `App.js`)
