# wbmnstr/reactnative architecture

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

- Interactive diagram: https://gitdiagram.com/wbmnstr/reactnative
- Repository: https://github.com/wbmnstr/reactnative

## Overview

This is a small Expo Router starter app: users open a tabbed home screen, explore example UI and cross-platform/theme features, and can open a modal. The graph captures the route/layout structure and the principal screen-to-component relationships, plus the shared theming and presentation layer. Other core components are retained as nodes, but relationships are included only where the excerpts or README provide evidence; the tab layout excerpt itself was indexed as read but not shown.

Main entry points: [`app/(tabs)/explore.tsx`](https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/explore.tsx) (Explore screen), [`app/(tabs)/index.tsx`](https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/index.tsx) (Home screen), [`components/ui/collapsible.tsx`](https://github.com/wbmnstr/reactnative/blob/master/components/ui/collapsible.tsx) (Collapsible panels), [`components/parallax-scroll-view.tsx`](https://github.com/wbmnstr/reactnative/blob/master/components/parallax-scroll-view.tsx) (Parallax view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Routing and screens"]
  node_root["Root layout<br/>[_layout.tsx]"]
  node_tabs["Tab layout<br/>[_layout.tsx]"]
  node_home["Home screen<br/>[index.tsx]"]
  node_explore["Explore screen<br/>[explore.tsx]"]
  node_modal["Modal screen<br/>[modal.tsx]"]
end

subgraph group_ui["Screen components"]
  node_parallax["Parallax view"]
  node_collapsible["Collapsible panels<br/>[collapsible.tsx]"]
  node_external["External links<br/>[external-link.tsx]"]
  node_wave["Hello wave<br/>[hello-wave.tsx]"]
  node_text["Themed text<br/>[themed-text.tsx]"]
  node_view["Themed view<br/>[themed-view.tsx]"]
  node_icons["Icon symbols<br/>[icon-symbol.tsx]"]
  node_haptics["Haptic tab<br/>[haptic-tab.tsx]"]
  node_iosicons["iOS icon symbols"]
end

subgraph group_theme["Theme and appearance"]
  node_themehook["Theme color hook<br/>[use-theme-color.ts]"]
  node_scheme["Color scheme hook"]
  node_webscheme["Web color scheme"]
  node_colors["Theme tokens<br/>[theme.ts]"]
end

node_user(("App user"))

node_user -->|"opens app"| node_root
node_root -->|"anchors tabs"| node_tabs
node_root -->|"registers modal"| node_modal
node_user -.->|"selects tab"| node_home
node_user -.->|"selects tab"| node_explore
node_home -->|"links to"| node_modal
node_home -->|"renders"| node_parallax
node_home -->|"renders"| node_wave
node_home -->|"renders"| node_text
node_home -->|"renders"| node_view
node_explore -->|"renders"| node_parallax
node_explore -->|"renders"| node_collapsible
node_explore -->|"renders"| node_external
node_explore -->|"renders"| node_text
node_explore -->|"renders"| node_view
node_explore -->|"renders"| node_icons
node_parallax -->|"renders"| node_view
node_parallax -->|"reads scheme"| node_scheme
node_parallax -->|"gets colors"| node_themehook
node_text -->|"gets text color"| node_themehook
node_view -->|"gets background"| node_themehook
node_themehook -->|"reads scheme"| node_scheme
node_themehook -->|"reads tokens"| node_colors
node_collapsible -->|"renders"| node_text
node_collapsible -->|"renders"| node_view
node_collapsible -->|"renders"| node_icons
node_collapsible -->|"reads scheme"| node_scheme
node_collapsible -->|"reads tokens"| node_colors
node_tabs -->|"configures tab"| node_haptics
node_tabs -->|"uses icons"| node_icons
node_tabs -->|"reads scheme"| node_scheme
node_root -->|"reads scheme"| node_scheme

click node_root "https://github.com/wbmnstr/reactnative/blob/master/app/_layout.tsx"
click node_tabs "https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/_layout.tsx"
click node_home "https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/index.tsx"
click node_explore "https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/explore.tsx"
click node_modal "https://github.com/wbmnstr/reactnative/blob/master/app/modal.tsx"
click node_parallax "https://github.com/wbmnstr/reactnative/blob/master/components/parallax-scroll-view.tsx"
click node_collapsible "https://github.com/wbmnstr/reactnative/blob/master/components/ui/collapsible.tsx"
click node_external "https://github.com/wbmnstr/reactnative/blob/master/components/external-link.tsx"
click node_wave "https://github.com/wbmnstr/reactnative/blob/master/components/hello-wave.tsx"
click node_text "https://github.com/wbmnstr/reactnative/blob/master/components/themed-text.tsx"
click node_view "https://github.com/wbmnstr/reactnative/blob/master/components/themed-view.tsx"
click node_icons "https://github.com/wbmnstr/reactnative/blob/master/components/ui/icon-symbol.tsx"
click node_haptics "https://github.com/wbmnstr/reactnative/blob/master/components/haptic-tab.tsx"
click node_iosicons "https://github.com/wbmnstr/reactnative/blob/master/components/ui/icon-symbol.ios.tsx"
click node_themehook "https://github.com/wbmnstr/reactnative/blob/master/hooks/use-theme-color.ts"
click node_scheme "https://github.com/wbmnstr/reactnative/blob/master/hooks/use-color-scheme.ts"
click node_webscheme "https://github.com/wbmnstr/reactnative/blob/master/hooks/use-color-scheme.web.ts"
click node_colors "https://github.com/wbmnstr/reactnative/blob/master/constants/theme.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_root,node_tabs,node_home,node_explore,node_modal,node_user toneBlue
class node_parallax,node_collapsible,node_external,node_wave,node_text,node_view,node_icons,node_haptics,node_iosicons toneAmber
class node_themehook,node_scheme,node_webscheme,node_colors toneMint
```

## Components

### Routing and screens

- [Root layout](https://github.com/wbmnstr/reactnative/blob/master/app/_layout.tsx): `app/_layout.tsx`
- [Tab layout](https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/_layout.tsx): `app/(tabs)/_layout.tsx`
- [Home screen](https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/index.tsx): `app/(tabs)/index.tsx`
- [Explore screen](https://github.com/wbmnstr/reactnative/blob/master/app/(tabs)/explore.tsx): `app/(tabs)/explore.tsx`
- [Modal screen](https://github.com/wbmnstr/reactnative/blob/master/app/modal.tsx): `app/modal.tsx`

### Screen components

- [Parallax view](https://github.com/wbmnstr/reactnative/blob/master/components/parallax-scroll-view.tsx): `components/parallax-scroll-view.tsx`
- [Collapsible panels](https://github.com/wbmnstr/reactnative/blob/master/components/ui/collapsible.tsx): `components/ui/collapsible.tsx`
- [External links](https://github.com/wbmnstr/reactnative/blob/master/components/external-link.tsx): `components/external-link.tsx`
- [Hello wave](https://github.com/wbmnstr/reactnative/blob/master/components/hello-wave.tsx): `components/hello-wave.tsx`
- [Themed text](https://github.com/wbmnstr/reactnative/blob/master/components/themed-text.tsx): `components/themed-text.tsx`
- [Themed view](https://github.com/wbmnstr/reactnative/blob/master/components/themed-view.tsx): `components/themed-view.tsx`
- [Icon symbols](https://github.com/wbmnstr/reactnative/blob/master/components/ui/icon-symbol.tsx): `components/ui/icon-symbol.tsx`
- [Haptic tab](https://github.com/wbmnstr/reactnative/blob/master/components/haptic-tab.tsx): `components/haptic-tab.tsx`
- [iOS icon symbols](https://github.com/wbmnstr/reactnative/blob/master/components/ui/icon-symbol.ios.tsx): `components/ui/icon-symbol.ios.tsx`

### Theme and appearance

- [Theme color hook](https://github.com/wbmnstr/reactnative/blob/master/hooks/use-theme-color.ts): `hooks/use-theme-color.ts`
- [Color scheme hook](https://github.com/wbmnstr/reactnative/blob/master/hooks/use-color-scheme.ts): `hooks/use-color-scheme.ts`
- [Web color scheme](https://github.com/wbmnstr/reactnative/blob/master/hooks/use-color-scheme.web.ts): `hooks/use-color-scheme.web.ts`
- [Theme tokens](https://github.com/wbmnstr/reactnative/blob/master/constants/theme.ts): `constants/theme.ts`

### Other components

- **App user**

## Connections

- App user → Root layout: opens app (evidence: `README.md`)
- Root layout → Tab layout: anchors tabs (evidence: `app/_layout.tsx`)
- Root layout → Modal screen: registers modal (evidence: `app/_layout.tsx`)
- App user → Home screen: selects tab
- App user → Explore screen: selects tab
- Home screen → Modal screen: links to (evidence: `app/(tabs)/index.tsx`)
- Home screen → Parallax view: renders (evidence: `app/(tabs)/index.tsx`)
- Home screen → Hello wave: renders (evidence: `app/(tabs)/index.tsx`)
- Home screen → Themed text: renders (evidence: `app/(tabs)/index.tsx`)
- Home screen → Themed view: renders (evidence: `app/(tabs)/index.tsx`)
- Explore screen → Parallax view: renders (evidence: `app/(tabs)/explore.tsx`)
- Explore screen → Collapsible panels: renders (evidence: `app/(tabs)/explore.tsx`)
- Explore screen → External links: renders (evidence: `app/(tabs)/explore.tsx`)
- Explore screen → Themed text: renders (evidence: `app/(tabs)/explore.tsx`)
- Explore screen → Themed view: renders (evidence: `app/(tabs)/explore.tsx`)
- Explore screen → Icon symbols: renders (evidence: `app/(tabs)/explore.tsx`)
- Parallax view → Themed view: renders (evidence: `components/parallax-scroll-view.tsx`)
- Parallax view → Color scheme hook: reads scheme (evidence: `components/parallax-scroll-view.tsx`)
- Parallax view → Theme color hook: gets colors (evidence: `components/parallax-scroll-view.tsx`)
- Themed text → Theme color hook: gets text color (evidence: `components/themed-text.tsx`)
- Themed view → Theme color hook: gets background (evidence: `components/themed-view.tsx`)
- Theme color hook → Color scheme hook: reads scheme (evidence: `hooks/use-theme-color.ts`)
- Theme color hook → Theme tokens: reads tokens (evidence: `hooks/use-theme-color.ts`)
- Collapsible panels → Themed text: renders (evidence: `components/ui/collapsible.tsx`)
- Collapsible panels → Themed view: renders (evidence: `components/ui/collapsible.tsx`)
- Collapsible panels → Icon symbols: renders (evidence: `components/ui/collapsible.tsx`)
- Collapsible panels → Color scheme hook: reads scheme (evidence: `components/ui/collapsible.tsx`)
- Collapsible panels → Theme tokens: reads tokens (evidence: `components/ui/collapsible.tsx`)
- Tab layout → Haptic tab: configures tab (evidence: `app/(tabs)/_layout.tsx`)
- Tab layout → Icon symbols: uses icons (evidence: `app/(tabs)/_layout.tsx`)
- Tab layout → Color scheme hook: reads scheme (evidence: `app/(tabs)/_layout.tsx`)
- Root layout → Color scheme hook: reads scheme (evidence: `app/_layout.tsx`)
