# ola67/deliveroo-clone-react-native-app architecture

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

- Interactive diagram: https://gitdiagram.com/ola67/deliveroo-clone-react-native-app
- Repository: https://github.com/ola67/deliveroo-clone-react-native-app

## Overview

This is an Expo/React Native food-delivery app backed by Sanity content. The user-facing path starts at restaurant discovery, opens a restaurant menu, adds dishes to a Redux cart, and proceeds through order and delivery screens. The graph includes the CMS content model and app state alongside that path. Source evidence is partial: unsampled screens and Sanity schemas are represented only where the tree or source index supports them; unsupported calls are omitted.

Main entry points: [`App.js`](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/App.js) (Navigation shell), [`screens/CartScreen.js`](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/CartScreen.js) (Cart and totals), [`screens/HomeScreen.js`](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/HomeScreen.js) (Restaurant discovery), [`screens/RestaurantScreen.js`](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/RestaurantScreen.js) (Restaurant menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Mobile app"]
  node_entry["Navigation shell<br/>[App.js]"]
  node_home["Restaurant discovery<br/>[HomeScreen.js]"]
  node_categories["Category browser<br/>[categories.js]"]
  node_category_cards["Category cards<br/>[CardCategories.js]"]
  node_feature_rows["Featured collections<br/>[FeatureRows.js]"]
  node_restaurant_cards["Restaurant cards"]
  node_restaurant_detail["Restaurant menu"]
  node_dish_controls["Dish controls<br/>[Dishes.js]"]
  node_cart_icon["Cart shortcut<br/>[CartIcon.js]"]
  node_cart_screen["Cart and totals<br/>[CartScreen.js]"]
  node_order_screen["Order screen<br/>[OrderScreen.js]"]
  node_delivery_screen["Delivery tracking<br/>[Delivery.js]"]
end

subgraph group_content["Sanity content"]
  node_sanity_client["Sanity client<br/>[sanity.js]"]
  node_sanity_service["Sanity CMS"]
  node_restaurant_schema["Restaurant schema<br/>[restaurant.js]"]
  node_cms_models["Other CMS models"]
end

subgraph group_state["App state"]
  node_redux_store["Redux store<br/>[store.js]"]
  node_cart_state["Cart state<br/>[CartSlice.js]"]
  node_restaurant_state["Selected restaurant<br/>[restaurant.js]"]
end

node_customer(("Customer"))

node_customer -->|"opens app"| node_entry
node_entry -->|"routes to"| node_home
node_entry -->|"routes to"| node_restaurant_detail
node_entry -->|"routes to"| node_cart_screen
node_entry -->|"routes to"| node_order_screen
node_entry -->|"routes to"| node_delivery_screen
node_entry -->|"provides state"| node_redux_store
node_home -->|"fetches features"| node_sanity_client
node_home -->|"renders"| node_categories
node_home -->|"renders"| node_feature_rows
node_categories -->|"renders"| node_category_cards
node_feature_rows -->|"fetches restaurants"| node_sanity_client
node_feature_rows -->|"renders"| node_restaurant_cards
node_restaurant_detail -->|"renders"| node_dish_controls
node_restaurant_detail -->|"renders"| node_cart_icon
node_restaurant_detail -->|"sets selection"| node_restaurant_state
node_dish_controls -->|"dispatches updates"| node_cart_state
node_cart_icon -->|"reads items"| node_cart_state
node_cart_screen -->|"reads and removes"| node_cart_state
node_cart_screen -->|"reads selection"| node_restaurant_state
node_cart_screen -->|"builds image URLs"| node_sanity_client
node_cart_screen -->|"navigates to"| node_order_screen
node_delivery_screen -->|"reads selection"| node_restaurant_state
node_redux_store -->|"registers reducer"| node_cart_state
node_redux_store -->|"registers reducer"| node_restaurant_state
node_sanity_client -->|"queries content"| node_sanity_service
node_restaurant_schema -.->|"defines restaurant documents"| node_sanity_service
node_cms_models -.->|"defines CMS content"| node_sanity_service

click node_entry "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/App.js"
click node_home "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/HomeScreen.js"
click node_categories "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/categories.js"
click node_category_cards "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/CardCategories.js"
click node_feature_rows "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/FeatureRows.js"
click node_restaurant_cards "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/RestaurantsCards.js"
click node_restaurant_detail "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/RestaurantScreen.js"
click node_dish_controls "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/Dishes.js"
click node_cart_icon "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/CartIcon.js"
click node_cart_screen "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/CartScreen.js"
click node_order_screen "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/OrderScreen.js"
click node_delivery_screen "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/Delivery.js"
click node_sanity_client "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/sanity.js"
click node_restaurant_schema "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/sanity/schemaTypes/restaurant.js"
click node_cms_models "https://github.com/ola67/deliveroo-clone-react-native-app/tree/main/sanity/schemaTypes"
click node_redux_store "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/store.js"
click node_cart_state "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/features/CartSlice.js"
click node_restaurant_state "https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/features/restaurant.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_entry,node_home,node_categories,node_category_cards,node_feature_rows,node_restaurant_cards,node_restaurant_detail,node_dish_controls,node_cart_icon,node_cart_screen,node_order_screen,node_delivery_screen toneBlue
class node_sanity_client,node_sanity_service,node_restaurant_schema,node_cms_models toneAmber
class node_redux_store,node_cart_state,node_restaurant_state toneMint
class node_customer toneIndigo
```

## Components

### Mobile app

- [Navigation shell](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/App.js): `App.js`
- [Restaurant discovery](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/HomeScreen.js): `screens/HomeScreen.js`
- [Category browser](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/categories.js): `components/categories.js`
- [Category cards](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/CardCategories.js): `components/CardCategories.js`
- [Featured collections](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/FeatureRows.js): `components/FeatureRows.js`
- [Restaurant cards](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/RestaurantsCards.js): `components/RestaurantsCards.js`
- [Restaurant menu](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/RestaurantScreen.js): `screens/RestaurantScreen.js`
- [Dish controls](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/Dishes.js): `components/Dishes.js`
- [Cart shortcut](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/components/CartIcon.js): `components/CartIcon.js`
- [Cart and totals](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/CartScreen.js): `screens/CartScreen.js`
- [Order screen](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/OrderScreen.js): `screens/OrderScreen.js`
- [Delivery tracking](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/screens/Delivery.js): `screens/Delivery.js`

### Sanity content

- [Sanity client](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/sanity.js): `sanity.js`
- **Sanity CMS**
- [Restaurant schema](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/sanity/schemaTypes/restaurant.js): `sanity/schemaTypes/restaurant.js`
- [Other CMS models](https://github.com/ola67/deliveroo-clone-react-native-app/tree/main/sanity/schemaTypes): `sanity/schemaTypes`

### App state

- [Redux store](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/store.js): `store.js`
- [Cart state](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/features/CartSlice.js): `features/CartSlice.js`
- [Selected restaurant](https://github.com/ola67/deliveroo-clone-react-native-app/blob/main/features/restaurant.js): `features/restaurant.js`

### Other components

- **Customer**

## Connections

- Customer → Navigation shell: opens app (evidence: `App.js`)
- Navigation shell → Restaurant discovery: routes to (evidence: `App.js`)
- Navigation shell → Restaurant menu: routes to (evidence: `App.js`)
- Navigation shell → Cart and totals: routes to (evidence: `App.js`)
- Navigation shell → Order screen: routes to (evidence: `App.js`)
- Navigation shell → Delivery tracking: routes to (evidence: `App.js`)
- Navigation shell → Redux store: provides state (evidence: `App.js`)
- Restaurant discovery → Sanity client: fetches features (evidence: `screens/HomeScreen.js`)
- Restaurant discovery → Category browser: renders (evidence: `screens/HomeScreen.js`)
- Restaurant discovery → Featured collections: renders (evidence: `screens/HomeScreen.js`)
- Category browser → Category cards: renders (evidence: `components/categories.js`)
- Featured collections → Sanity client: fetches restaurants (evidence: `components/FeatureRows.js`)
- Featured collections → Restaurant cards: renders (evidence: `components/FeatureRows.js`)
- Restaurant menu → Dish controls: renders (evidence: `screens/RestaurantScreen.js`)
- Restaurant menu → Cart shortcut: renders (evidence: `screens/RestaurantScreen.js`)
- Restaurant menu → Selected restaurant: sets selection (evidence: `screens/RestaurantScreen.js`)
- Dish controls → Cart state: dispatches updates (evidence: `components/Dishes.js`)
- Cart shortcut → Cart state: reads items (evidence: `components/CartIcon.js`)
- Cart and totals → Cart state: reads and removes (evidence: `screens/CartScreen.js`)
- Cart and totals → Selected restaurant: reads selection (evidence: `screens/CartScreen.js`)
- Cart and totals → Sanity client: builds image URLs (evidence: `screens/CartScreen.js`)
- Cart and totals → Order screen: navigates to (evidence: `screens/CartScreen.js`)
- Delivery tracking → Selected restaurant: reads selection (evidence: `screens/Delivery.js`)
- Redux store → Cart state: registers reducer (evidence: `store.js`)
- Redux store → Selected restaurant: registers reducer (evidence: `store.js`)
- Sanity client → Sanity CMS: queries content (evidence: `sanity.js`)
- Restaurant schema → Sanity CMS: defines restaurant documents
- Other CMS models → Sanity CMS: defines CMS content
