# doctor3131/ppk-rn-expo-58 architecture

> Architecture diagram of the GitHub repository doctor3131/ppk-rn-expo-58, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/doctor3131/ppk-rn-expo-58
- Repository: https://github.com/doctor3131/ppk-rn-expo-58

## Overview

This is an Expo/React Native starter app, not a domain-specific product: users land on a welcome screen, switch to an Explore screen, and browse examples and documentation links. Its runtime is organized around file-based routing and platform-specific tabs, with reusable themed UI and light/dark theme selection beneath the screens. Explore documents cross-platform support, static images, theme-aware components, and animated collapsibles. The README mainly points to setup documentation and a first-setup reset script. Some modules are indexed but not excerpted, so only relationships visible in excerpts or documented in Explore are drawn.

Main entry points: [`src/app/index.tsx`](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/index.tsx) (Welcome screen), [`src/app/explore.tsx`](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/explore.tsx) (Explore screen), [`src/components/themed-text.tsx`](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/themed-text.tsx) (Themed text), [`src/components/themed-view.tsx`](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/themed-view.tsx) (Themed view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Screens and navigation"]
  node_layout["Tab layout<br/>[_layout.tsx]"]
  node_home["Welcome screen<br/>[index.tsx]"]
  node_explore["Explore screen<br/>[explore.tsx]"]
  node_native_tabs["Native tabs<br/>[app-tabs.tsx]"]
  node_web_tabs["Web tabs<br/>[app-tabs.web.tsx]"]
end

subgraph group_ui["Reusable UI"]
  node_animated_icon["Animated icon<br/>[animated-icon.tsx]"]
  node_hint_row["Hint row<br/>[hint-row.tsx]"]
  node_collapsible["Collapsible sections<br/>[collapsible.tsx]"]
  node_external_link["External links<br/>[external-link.tsx]"]
  node_web_badge["Web badge<br/>[web-badge.tsx]"]
end

subgraph group_appearance["Theme and appearance"]
  node_themed_text["Themed text<br/>[themed-text.tsx]"]
  node_themed_view["Themed view<br/>[themed-view.tsx]"]
  node_theme_tokens["Theme tokens<br/>[theme.ts]"]
  node_use_theme["Theme selection<br/>[use-theme.ts]"]
  node_color_scheme["Color scheme hook"]
  node_web_color_scheme["Web color scheme"]
end

node_user(("App user"))
node_docs(("Expo documentation"))

node_user -->|"opens app"| node_layout
node_layout -->|"sets up tabs"| node_native_tabs
node_layout -->|"sets up tabs"| node_web_tabs
node_user -->|"visits"| node_home
node_user -->|"visits"| node_explore
node_home -->|"renders"| node_animated_icon
node_home -->|"renders"| node_hint_row
node_home -->|"renders"| node_themed_text
node_home -->|"renders"| node_themed_view
node_home -->|"renders"| node_web_badge
node_explore -->|"renders"| node_collapsible
node_explore -->|"renders"| node_external_link
node_explore -->|"renders"| node_web_badge
node_explore -->|"renders"| node_themed_text
node_explore -->|"renders"| node_themed_view
node_collapsible -->|"renders"| node_themed_text
node_collapsible -->|"renders"| node_themed_view
node_hint_row -->|"renders"| node_themed_text
node_hint_row -->|"renders"| node_themed_view
node_themed_text -->|"selects colors"| node_use_theme
node_themed_view -->|"selects colors"| node_use_theme
node_use_theme -->|"reads scheme"| node_color_scheme
node_use_theme -->|"selects palette"| node_theme_tokens
node_native_tabs -->|"uses layout tokens"| node_theme_tokens
node_web_tabs -->|"renders"| node_external_link
node_web_tabs -->|"renders"| node_themed_text
node_web_tabs -->|"renders"| node_themed_view
node_external_link -->|"opens link"| node_docs

click node_layout "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/_layout.tsx"
click node_home "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/index.tsx"
click node_explore "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/explore.tsx"
click node_native_tabs "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/app-tabs.tsx"
click node_web_tabs "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/app-tabs.web.tsx"
click node_animated_icon "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/animated-icon.tsx"
click node_hint_row "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/hint-row.tsx"
click node_collapsible "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/ui/collapsible.tsx"
click node_external_link "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/external-link.tsx"
click node_web_badge "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/web-badge.tsx"
click node_themed_text "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/themed-text.tsx"
click node_themed_view "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/themed-view.tsx"
click node_theme_tokens "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/constants/theme.ts"
click node_use_theme "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/hooks/use-theme.ts"
click node_color_scheme "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/hooks/use-color-scheme.ts"
click node_web_color_scheme "https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/hooks/use-color-scheme.web.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_layout,node_home,node_explore,node_native_tabs,node_web_tabs,node_user toneBlue
class node_animated_icon,node_hint_row,node_collapsible,node_external_link,node_web_badge toneAmber
class node_themed_text,node_themed_view,node_theme_tokens,node_use_theme,node_color_scheme,node_web_color_scheme toneMint
class node_docs toneIndigo
```

## Components

### Screens and navigation

- [Tab layout](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/_layout.tsx): `src/app/_layout.tsx`
- [Welcome screen](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/index.tsx): `src/app/index.tsx`
- [Explore screen](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/app/explore.tsx): `src/app/explore.tsx`
- [Native tabs](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/app-tabs.tsx): `src/components/app-tabs.tsx`
- [Web tabs](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/app-tabs.web.tsx): `src/components/app-tabs.web.tsx`

### Reusable UI

- [Animated icon](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/animated-icon.tsx): `src/components/animated-icon.tsx`
- [Hint row](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/hint-row.tsx): `src/components/hint-row.tsx`
- [Collapsible sections](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/ui/collapsible.tsx): `src/components/ui/collapsible.tsx`
- [External links](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/external-link.tsx): `src/components/external-link.tsx`
- [Web badge](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/web-badge.tsx): `src/components/web-badge.tsx`

### Theme and appearance

- [Themed text](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/themed-text.tsx): `src/components/themed-text.tsx`
- [Themed view](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/components/themed-view.tsx): `src/components/themed-view.tsx`
- [Theme tokens](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/constants/theme.ts): `src/constants/theme.ts`
- [Theme selection](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/hooks/use-theme.ts): `src/hooks/use-theme.ts`
- [Color scheme hook](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/hooks/use-color-scheme.ts): `src/hooks/use-color-scheme.ts`
- [Web color scheme](https://github.com/doctor3131/ppk-rn-expo-58/blob/main/src/hooks/use-color-scheme.web.ts): `src/hooks/use-color-scheme.web.ts`

### Other components

- **App user**
- **Expo documentation**

## Connections

- App user → Tab layout: opens app
- Tab layout → Native tabs: sets up tabs (evidence: `src/app/_layout.tsx`)
- Tab layout → Web tabs: sets up tabs (evidence: `src/app/_layout.tsx`)
- App user → Welcome screen: visits (evidence: `src/app/index.tsx`)
- App user → Explore screen: visits (evidence: `src/app/explore.tsx`)
- Welcome screen → Animated icon: renders (evidence: `src/app/index.tsx`)
- Welcome screen → Hint row: renders (evidence: `src/app/index.tsx`)
- Welcome screen → Themed text: renders (evidence: `src/app/index.tsx`)
- Welcome screen → Themed view: renders (evidence: `src/app/index.tsx`)
- Welcome screen → Web badge: renders (evidence: `src/app/index.tsx`)
- Explore screen → Collapsible sections: renders (evidence: `src/app/explore.tsx`)
- Explore screen → External links: renders (evidence: `src/app/explore.tsx`)
- Explore screen → Web badge: renders (evidence: `src/app/explore.tsx`)
- Explore screen → Themed text: renders (evidence: `src/app/explore.tsx`)
- Explore screen → Themed view: renders (evidence: `src/app/explore.tsx`)
- Collapsible sections → Themed text: renders (evidence: `src/components/ui/collapsible.tsx`)
- Collapsible sections → Themed view: renders (evidence: `src/components/ui/collapsible.tsx`)
- Hint row → Themed text: renders (evidence: `src/components/hint-row.tsx`)
- Hint row → Themed view: renders (evidence: `src/components/hint-row.tsx`)
- Themed text → Theme selection: selects colors (evidence: `src/components/themed-text.tsx`)
- Themed view → Theme selection: selects colors (evidence: `src/components/themed-view.tsx`)
- Theme selection → Color scheme hook: reads scheme (evidence: `src/hooks/use-theme.ts`)
- Theme selection → Theme tokens: selects palette (evidence: `src/hooks/use-theme.ts`)
- Native tabs → Theme tokens: uses layout tokens (evidence: `src/components/app-tabs.tsx`)
- Web tabs → External links: renders (evidence: `src/components/app-tabs.web.tsx`)
- Web tabs → Themed text: renders (evidence: `src/components/app-tabs.web.tsx`)
- Web tabs → Themed view: renders (evidence: `src/components/app-tabs.web.tsx`)
- External links → Expo documentation: opens link
