# sagudelo1200/pet-pals architecture

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

- Interactive diagram: https://gitdiagram.com/sagudelo1200/pet-pals
- Repository: https://github.com/sagudelo1200/pet-pals

## Overview

Pet Pals is a React Native shopping and lifestyle app, with catalog browsing, product details, cart, search, account, messaging, and notification screens. The user enters through the app shell, which prepares assets and fonts before mounting the navigation system; navigation then exposes the screen-based experience. Product and category content is supplied by local constant modules rather than a shown backend or persistent store. The graph reflects documented routes and visible imports; unsampled screen internals and any checkout or persistence behavior are not inferred.

Main entry points: [`navigation/Screens.js`](https://github.com/sagudelo1200/pet-pals/blob/main/navigation/Screens.js) (Screen router), [`constants/index.js`](https://github.com/sagudelo1200/pet-pals/blob/main/constants/index.js) (Product and article data), [`components/Header.js`](https://github.com/sagudelo1200/pet-pals/blob/main/components/Header.js) (Navigation header), [`screens/Search.js`](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Search.js) (Product search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_app["App bootstrap<br/>[App.js]"]
end

subgraph group_navigation["Navigation"]
  node_router["Screen router<br/>[Screens.js]"]
  node_menu["Drawer menu<br/>[Menu.js]"]
end

subgraph group_shopping["Shopping experience"]
  node_home["Home and onboarding<br/>[Home.js]"]
  node_category["Category browsing<br/>[Category.js]"]
  node_beauty["Beauty and fashion<br/>[Beauty.js]"]
  node_product["Product details<br/>[Product.js]"]
  node_cart["Shopping cart<br/>[Cart.js]"]
  node_search["Product search<br/>[Search.js]"]
  node_articles["Articles<br/>[Articles.js]"]
  node_gallery["Gallery<br/>[Gallery.js]"]
end

subgraph group_account["Account and support"]
  node_profile["Profile and registration<br/>[Profile.js]"]
  node_register["Registration<br/>[Register.js]"]
  node_settings["Settings<br/>[Settings.js]"]
  node_notifications["Notifications<br/>[Notifications.js]"]
  node_personal_notifications["Personal notifications"]
  node_system_notifications["System notifications"]
  node_chat["Chat<br/>[Chat.js]"]
  node_pro["Pro offering<br/>[Pro.js]"]
end

subgraph group_shared["Shared UI and data"]
  node_elements["UI showcase<br/>[Elements.js]"]
  node_header["Navigation header<br/>[Header.js]"]
  node_icon["Icon renderer<br/>[Icon.js]"]
  node_input["Input control<br/>[Input.js]"]
  node_theme["Theme tokens<br/>[Theme.js]"]
  node_images["Image assets<br/>[Images.js]"]
  node_categories["Category catalog<br/>[categories.js]"]
  node_content["Product and article data<br/>[index.js]"]
end

node_user(("App user"))

node_user -->|"opens"| node_app
node_app -->|"mounts"| node_router
node_app -->|"loads assets"| node_content
node_router -->|"configures drawer"| node_menu
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_category
node_router -->|"routes to"| node_beauty
node_router -->|"routes to"| node_product
node_router -->|"routes to"| node_cart
node_router -->|"routes to"| node_search
node_router -->|"routes to"| node_articles
node_router -->|"routes to"| node_gallery
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_register
node_router -->|"routes to"| node_settings
node_router -->|"routes to"| node_notifications
node_router -->|"routes to"| node_personal_notifications
node_router -->|"routes to"| node_system_notifications
node_router -->|"routes to"| node_chat
node_router -->|"routes to"| node_pro
node_router -->|"routes to"| node_elements
node_router -->|"renders header"| node_header
node_search -->|"reads catalog"| node_content
node_search -->|"reads categories"| node_categories
node_search -->|"renders icon"| node_icon
node_search -.->|"uses controls"| node_header
node_product -->|"navigates to"| node_chat
node_product -->|"uses images"| node_images
node_product -->|"uses theme"| node_theme
node_category -->|"reads categories"| node_categories
node_category -->|"uses shared data"| node_content
node_articles -->|"reads content"| node_content
node_cart -->|"uses shared data"| node_content
node_profile -->|"uses shared data"| node_content
node_register -->|"uses shared data"| node_content
node_settings -->|"uses theme"| node_theme
node_chat -->|"uses images"| node_images
node_elements -->|"demonstrates"| node_header
node_elements -->|"demonstrates"| node_input
node_header -->|"renders"| node_icon
node_header -->|"uses"| node_input
node_header -->|"uses theme"| node_theme
node_input -->|"renders"| node_icon
node_input -->|"uses shared constants"| node_content
node_menu -->|"uses images"| node_images
node_menu -.->|"uses components"| node_header

click node_app "https://github.com/sagudelo1200/pet-pals/blob/main/App.js"
click node_router "https://github.com/sagudelo1200/pet-pals/blob/main/navigation/Screens.js"
click node_menu "https://github.com/sagudelo1200/pet-pals/blob/main/navigation/Menu.js"
click node_home "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Home.js"
click node_category "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Category.js"
click node_beauty "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Beauty.js"
click node_product "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Product.js"
click node_cart "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Cart.js"
click node_search "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Search.js"
click node_articles "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Articles.js"
click node_gallery "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Gallery.js"
click node_profile "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Profile.js"
click node_register "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Register.js"
click node_settings "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Settings.js"
click node_notifications "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Notifications.js"
click node_personal_notifications "https://github.com/sagudelo1200/pet-pals/blob/main/screens/PersonalNotifications.js"
click node_system_notifications "https://github.com/sagudelo1200/pet-pals/blob/main/screens/SystemNotifications.js"
click node_chat "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Chat.js"
click node_pro "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Pro.js"
click node_elements "https://github.com/sagudelo1200/pet-pals/blob/main/screens/Elements.js"
click node_header "https://github.com/sagudelo1200/pet-pals/blob/main/components/Header.js"
click node_icon "https://github.com/sagudelo1200/pet-pals/blob/main/components/Icon.js"
click node_input "https://github.com/sagudelo1200/pet-pals/blob/main/components/Input.js"
click node_theme "https://github.com/sagudelo1200/pet-pals/blob/main/constants/Theme.js"
click node_images "https://github.com/sagudelo1200/pet-pals/blob/main/constants/Images.js"
click node_categories "https://github.com/sagudelo1200/pet-pals/blob/main/constants/categories.js"
click node_content "https://github.com/sagudelo1200/pet-pals/blob/main/constants/index.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_router,node_menu toneAmber
class node_home,node_category,node_beauty,node_product,node_cart,node_search,node_articles,node_gallery toneMint
class node_profile,node_register,node_settings,node_notifications,node_personal_notifications,node_system_notifications,node_chat,node_pro toneRose
class node_elements,node_header,node_icon,node_input,node_theme,node_images,node_categories,node_content toneIndigo
```

## Components

### App shell

- [App bootstrap](https://github.com/sagudelo1200/pet-pals/blob/main/App.js): `App.js`

### Navigation

- [Screen router](https://github.com/sagudelo1200/pet-pals/blob/main/navigation/Screens.js): `navigation/Screens.js`
- [Drawer menu](https://github.com/sagudelo1200/pet-pals/blob/main/navigation/Menu.js): `navigation/Menu.js`

### Shopping experience

- [Home and onboarding](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Home.js): `screens/Home.js`
- [Category browsing](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Category.js): `screens/Category.js`
- [Beauty and fashion](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Beauty.js): `screens/Beauty.js`
- [Product details](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Product.js): `screens/Product.js`
- [Shopping cart](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Cart.js): `screens/Cart.js`
- [Product search](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Search.js): `screens/Search.js`
- [Articles](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Articles.js): `screens/Articles.js`
- [Gallery](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Gallery.js): `screens/Gallery.js`

### Account and support

- [Profile and registration](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Profile.js): `screens/Profile.js`
- [Registration](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Register.js): `screens/Register.js`
- [Settings](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Settings.js): `screens/Settings.js`
- [Notifications](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Notifications.js): `screens/Notifications.js`
- [Personal notifications](https://github.com/sagudelo1200/pet-pals/blob/main/screens/PersonalNotifications.js): `screens/PersonalNotifications.js`
- [System notifications](https://github.com/sagudelo1200/pet-pals/blob/main/screens/SystemNotifications.js): `screens/SystemNotifications.js`
- [Chat](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Chat.js): `screens/Chat.js`
- [Pro offering](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Pro.js): `screens/Pro.js`

### Shared UI and data

- [UI showcase](https://github.com/sagudelo1200/pet-pals/blob/main/screens/Elements.js): `screens/Elements.js`
- [Navigation header](https://github.com/sagudelo1200/pet-pals/blob/main/components/Header.js): `components/Header.js`
- [Icon renderer](https://github.com/sagudelo1200/pet-pals/blob/main/components/Icon.js): `components/Icon.js`
- [Input control](https://github.com/sagudelo1200/pet-pals/blob/main/components/Input.js): `components/Input.js`
- [Theme tokens](https://github.com/sagudelo1200/pet-pals/blob/main/constants/Theme.js): `constants/Theme.js`
- [Image assets](https://github.com/sagudelo1200/pet-pals/blob/main/constants/Images.js): `constants/Images.js`
- [Category catalog](https://github.com/sagudelo1200/pet-pals/blob/main/constants/categories.js): `constants/categories.js`
- [Product and article data](https://github.com/sagudelo1200/pet-pals/blob/main/constants/index.js): `constants/index.js`

### Other components

- **App user**

## Connections

- App user → App bootstrap: opens (evidence: `App.js`)
- App bootstrap → Screen router: mounts (evidence: `App.js`)
- App bootstrap → Product and article data: loads assets (evidence: `App.js`)
- Screen router → Drawer menu: configures drawer (evidence: `navigation/Screens.js`)
- Screen router → Home and onboarding: routes to (evidence: `navigation/Screens.js`)
- Screen router → Category browsing: routes to (evidence: `navigation/Screens.js`)
- Screen router → Beauty and fashion: routes to (evidence: `navigation/Screens.js`)
- Screen router → Product details: routes to (evidence: `navigation/Screens.js`)
- Screen router → Shopping cart: routes to (evidence: `navigation/Screens.js`)
- Screen router → Product search: routes to (evidence: `navigation/Screens.js`)
- Screen router → Articles: routes to (evidence: `navigation/Screens.js`)
- Screen router → Gallery: routes to (evidence: `navigation/Screens.js`)
- Screen router → Profile and registration: routes to (evidence: `navigation/Screens.js`)
- Screen router → Registration: routes to (evidence: `navigation/Screens.js`)
- Screen router → Settings: routes to (evidence: `navigation/Screens.js`)
- Screen router → Notifications: routes to (evidence: `navigation/Screens.js`)
- Screen router → Personal notifications: routes to (evidence: `navigation/Screens.js`)
- Screen router → System notifications: routes to (evidence: `navigation/Screens.js`)
- Screen router → Chat: routes to (evidence: `navigation/Screens.js`)
- Screen router → Pro offering: routes to (evidence: `navigation/Screens.js`)
- Screen router → UI showcase: routes to (evidence: `navigation/Screens.js`)
- Screen router → Navigation header: renders header (evidence: `navigation/Screens.js`)
- Product search → Product and article data: reads catalog (evidence: `screens/Search.js`)
- Product search → Category catalog: reads categories (evidence: `screens/Search.js`)
- Product search → Icon renderer: renders icon (evidence: `screens/Search.js`)
- Product search → Navigation header: uses controls
- Product details → Chat: navigates to (evidence: `screens/Product.js`)
- Product details → Image assets: uses images (evidence: `screens/Product.js`)
- Product details → Theme tokens: uses theme (evidence: `screens/Product.js`)
- Category browsing → Category catalog: reads categories (evidence: `screens/Category.js`)
- Category browsing → Product and article data: uses shared data (evidence: `screens/Category.js`)
- Articles → Product and article data: reads content (evidence: `screens/Articles.js`)
- Shopping cart → Product and article data: uses shared data (evidence: `screens/Cart.js`)
- Profile and registration → Product and article data: uses shared data (evidence: `screens/Profile.js`)
- Registration → Product and article data: uses shared data (evidence: `screens/Register.js`)
- Settings → Theme tokens: uses theme (evidence: `screens/Settings.js`)
- Chat → Image assets: uses images (evidence: `screens/Chat.js`)
- UI showcase → Navigation header: demonstrates (evidence: `screens/Elements.js`)
- UI showcase → Input control: demonstrates (evidence: `screens/Elements.js`)
- Navigation header → Icon renderer: renders (evidence: `components/Header.js`)
- Navigation header → Input control: uses (evidence: `components/Header.js`)
- Navigation header → Theme tokens: uses theme (evidence: `components/Header.js`)
- Input control → Icon renderer: renders (evidence: `components/Input.js`)
- Input control → Product and article data: uses shared constants (evidence: `components/Input.js`)
- Drawer menu → Image assets: uses images (evidence: `navigation/Menu.js`)
- Drawer menu → Navigation header: uses components
