# georgealam37/abn-amro-android-app architecture

> Architecture diagram of the GitHub repository georgealam37/abn-amro-android-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/georgealam37/abn-amro-android-app
- Repository: https://github.com/georgealam37/abn-amro-android-app

## Overview

This Expo app lets a user browse ABN AMRO GitHub repositories, select one, inspect its details, and open its GitHub page externally. The list screen fetches the first page from GitHub when connected and caches results in SQLite; offline, it attempts to display cached entries. App.js registers the two screens, and the list passes the selected repository to the detail screen. The README describes a paginated list, but the sampled implementation requests only page 1. The graph reflects the shown calls; no other source was sampled.

Main entry points: [`RepoListScreen.js`](https://github.com/georgealam37/abn-amro-android-app/blob/main/RepoListScreen.js) (Repository list), [`RepoDetailScreen.js`](https://github.com/georgealam37/abn-amro-android-app/blob/main/RepoDetailScreen.js) (Repository details), [`database.js`](https://github.com/georgealam37/abn-amro-android-app/blob/main/database.js) (Repository cache), [`App.js`](https://github.com/georgealam37/abn-amro-android-app/blob/main/App.js) (Navigation shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["Navigation shell<br/>[App.js]"]
end

subgraph group_listing["Repository listing"]
  node_list["Repository list<br/>[RepoListScreen.js]"]
  node_github["GitHub API"]
  node_cache["Repository cache<br/>[database.js]"]
  node_sqlite[("SQLite store<br/>[database.js]")]
end

subgraph group_details["Repository details"]
  node_detail["Repository details"]
  node_network["Network status"]
  node_browser["External browser"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"registers"| node_list
node_app -->|"registers"| node_detail
node_list -->|"fetches page"| node_github
node_list -->|"initializes"| node_cache
node_list -->|"saves results"| node_cache
node_list -->|"loads offline"| node_cache
node_cache -->|"reads and writes"| node_sqlite
node_list -->|"passes selection"| node_detail
node_detail -->|"opens repository URL"| node_browser
node_detail -->|"subscribes"| node_network
node_list -->|"checks connectivity"| node_network

click node_app "https://github.com/georgealam37/abn-amro-android-app/blob/main/App.js"
click node_list "https://github.com/georgealam37/abn-amro-android-app/blob/main/RepoListScreen.js"
click node_cache "https://github.com/georgealam37/abn-amro-android-app/blob/main/database.js"
click node_sqlite "https://github.com/georgealam37/abn-amro-android-app/blob/main/database.js"
click node_detail "https://github.com/georgealam37/abn-amro-android-app/blob/main/RepoDetailScreen.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_app,node_user toneBlue
class node_list,node_github,node_cache,node_sqlite toneAmber
class node_detail,node_network,node_browser toneMint
```

## Components

### App navigation

- [Navigation shell](https://github.com/georgealam37/abn-amro-android-app/blob/main/App.js): `App.js`

### Repository listing

- [Repository list](https://github.com/georgealam37/abn-amro-android-app/blob/main/RepoListScreen.js): `RepoListScreen.js`
- **GitHub API**
- [Repository cache](https://github.com/georgealam37/abn-amro-android-app/blob/main/database.js): `database.js`
- [SQLite store](https://github.com/georgealam37/abn-amro-android-app/blob/main/database.js): `database.js`

### Repository details

- [Repository details](https://github.com/georgealam37/abn-amro-android-app/blob/main/RepoDetailScreen.js): `RepoDetailScreen.js`
- **Network status**
- **External browser**

### Other components

- **User**

## Connections

- User → Navigation shell: opens
- Navigation shell → Repository list: registers (evidence: `App.js`)
- Navigation shell → Repository details: registers (evidence: `App.js`)
- Repository list → GitHub API: fetches page (evidence: `RepoListScreen.js`)
- Repository list → Repository cache: initializes (evidence: `RepoListScreen.js`)
- Repository list → Repository cache: saves results (evidence: `RepoListScreen.js`)
- Repository list → Repository cache: loads offline (evidence: `RepoListScreen.js`)
- Repository cache → SQLite store: reads and writes (evidence: `database.js`)
- Repository list → Repository details: passes selection (evidence: `RepoListScreen.js`)
- Repository details → External browser: opens repository URL (evidence: `RepoDetailScreen.js`)
- Repository details → Network status: subscribes (evidence: `RepoDetailScreen.js`)
- Repository list → Network status: checks connectivity (evidence: `RepoListScreen.js`)
