# vishwanath-k-s/orchard-mobile architecture

> Architecture diagram of the GitHub repository vishwanath-k-s/orchard-mobile, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishwanath-k-s/orchard-mobile
- Repository: https://github.com/vishwanath-k-s/orchard-mobile

## Overview

This is a small Expo/React Native starter app rather than a domain-specific orchard product: its visible workflow is opening the Home or Explore route, with Home presenting starter guidance and themed, animated UI. The source excerpts establish Home’s component usage and the web tab navigation; Explore and the root layout are indexed but their implementation details were not excerpted, so their internal behavior and wiring are not inferred.

Main entry points: [`app/src/app/index.tsx`](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/app/index.tsx) (Home screen), [`app/src/components/themed-text.tsx`](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/themed-text.tsx) (Themed text), [`app/src/components/themed-view.tsx`](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/themed-view.tsx) (Themed view), [`app/src/components/app-tabs.web.tsx`](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/app-tabs.web.tsx) (Web tabs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["App routes"]
  node_home["Home screen<br/>[index.tsx]"]
  node_explore["Explore screen<br/>[explore.tsx]"]
  node_layout["Root layout<br/>[_layout.tsx]"]
end

subgraph group_navigation["Navigation"]
  node_webtabs["Web tabs<br/>[app-tabs.web.tsx]"]
  node_nativetabs["Native tabs<br/>[app-tabs.tsx]"]
  node_router["Expo Router"]
end

subgraph group_presentation["Presentation UI"]
  node_animated["Animated icon<br/>[animated-icon.tsx]"]
  node_hint["Hint row<br/>[hint-row.tsx]"]
  node_badge["Web badge<br/>[web-badge.tsx]"]
  node_external["External link<br/>[external-link.tsx]"]
  node_text["Themed text<br/>[themed-text.tsx]"]
  node_view["Themed view<br/>[themed-view.tsx]"]
end

subgraph group_theme["Theming"]
  node_themehook["Theme hook<br/>[use-theme.ts]"]
  node_colorscheme["Color scheme hook"]
  node_webcolorscheme["Web color scheme"]
  node_tokens["Theme tokens<br/>[theme.ts]"]
end

node_user(("App user"))

node_user -.->|"opens"| node_home
node_user -.->|"opens"| node_explore
node_home -->|"renders"| node_animated
node_home -->|"renders"| node_hint
node_home -->|"renders"| node_text
node_home -->|"renders"| node_view
node_home -->|"renders"| node_badge
node_webtabs -->|"uses tabs"| node_router
node_webtabs -->|"renders"| node_external
node_webtabs -->|"renders"| node_text
node_webtabs -->|"renders"| node_view
node_external -->|"renders link"| node_router
node_hint -->|"renders"| node_text
node_hint -->|"renders"| node_view
node_badge -->|"renders"| node_text
node_badge -->|"renders"| node_view
node_text -->|"reads theme"| node_themehook
node_view -->|"reads theme"| node_themehook
node_themehook -.->|"uses scheme"| node_colorscheme
node_themehook -.->|"reads tokens"| node_tokens
node_webcolorscheme -->|"wraps scheme"| node_colorscheme

click node_home "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/app/index.tsx"
click node_explore "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/app/explore.tsx"
click node_layout "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/app/_layout.tsx"
click node_webtabs "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/app-tabs.web.tsx"
click node_nativetabs "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/app-tabs.tsx"
click node_animated "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/animated-icon.tsx"
click node_hint "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/hint-row.tsx"
click node_badge "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/web-badge.tsx"
click node_external "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/external-link.tsx"
click node_text "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/themed-text.tsx"
click node_view "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/themed-view.tsx"
click node_themehook "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/hooks/use-theme.ts"
click node_colorscheme "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/hooks/use-color-scheme.ts"
click node_webcolorscheme "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/hooks/use-color-scheme.web.ts"
click node_tokens "https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/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_home,node_explore,node_layout,node_user toneBlue
class node_webtabs,node_nativetabs,node_router toneAmber
class node_animated,node_hint,node_badge,node_external,node_text,node_view toneMint
class node_themehook,node_colorscheme,node_webcolorscheme,node_tokens toneRose
```

## Components

### App routes

- [Home screen](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/app/index.tsx): `app/src/app/index.tsx`
- [Explore screen](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/app/explore.tsx): `app/src/app/explore.tsx`
- [Root layout](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/app/_layout.tsx): `app/src/app/_layout.tsx`

### Navigation

- [Web tabs](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/app-tabs.web.tsx): `app/src/components/app-tabs.web.tsx`
- [Native tabs](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/app-tabs.tsx): `app/src/components/app-tabs.tsx`
- **Expo Router**

### Presentation UI

- [Animated icon](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/animated-icon.tsx): `app/src/components/animated-icon.tsx`
- [Hint row](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/hint-row.tsx): `app/src/components/hint-row.tsx`
- [Web badge](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/web-badge.tsx): `app/src/components/web-badge.tsx`
- [External link](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/external-link.tsx): `app/src/components/external-link.tsx`
- [Themed text](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/themed-text.tsx): `app/src/components/themed-text.tsx`
- [Themed view](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/components/themed-view.tsx): `app/src/components/themed-view.tsx`

### Theming

- [Theme hook](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/hooks/use-theme.ts): `app/src/hooks/use-theme.ts`
- [Color scheme hook](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/hooks/use-color-scheme.ts): `app/src/hooks/use-color-scheme.ts`
- [Web color scheme](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/hooks/use-color-scheme.web.ts): `app/src/hooks/use-color-scheme.web.ts`
- [Theme tokens](https://github.com/vishwanath-k-s/orchard-mobile/blob/main/app/src/constants/theme.ts): `app/src/constants/theme.ts`

### Other components

- **App user**

## Connections

- App user → Home screen: opens
- App user → Explore screen: opens
- Home screen → Animated icon: renders (evidence: `app/src/app/index.tsx`)
- Home screen → Hint row: renders (evidence: `app/src/app/index.tsx`)
- Home screen → Themed text: renders (evidence: `app/src/app/index.tsx`)
- Home screen → Themed view: renders (evidence: `app/src/app/index.tsx`)
- Home screen → Web badge: renders (evidence: `app/src/app/index.tsx`)
- Web tabs → Expo Router: uses tabs (evidence: `app/src/components/app-tabs.web.tsx`)
- Web tabs → External link: renders (evidence: `app/src/components/app-tabs.web.tsx`)
- Web tabs → Themed text: renders (evidence: `app/src/components/app-tabs.web.tsx`)
- Web tabs → Themed view: renders (evidence: `app/src/components/app-tabs.web.tsx`)
- External link → Expo Router: renders link (evidence: `app/src/components/external-link.tsx`)
- Hint row → Themed text: renders (evidence: `app/src/components/hint-row.tsx`)
- Hint row → Themed view: renders (evidence: `app/src/components/hint-row.tsx`)
- Web badge → Themed text: renders (evidence: `app/src/components/web-badge.tsx`)
- Web badge → Themed view: renders (evidence: `app/src/components/web-badge.tsx`)
- Themed text → Theme hook: reads theme (evidence: `app/src/components/themed-text.tsx`)
- Themed view → Theme hook: reads theme (evidence: `app/src/components/themed-view.tsx`)
- Theme hook → Color scheme hook: uses scheme
- Theme hook → Theme tokens: reads tokens
- Web color scheme → Color scheme hook: wraps scheme (evidence: `app/src/hooks/use-color-scheme.web.ts`)
