How ola67/deliveroo-clone-react-native-app works
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 Navigation shell · CartScreen.js Cart and totals · HomeScreen.js Restaurant discovery · RestaurantScreen.js Restaurant menu
Components 20
Mobile app
- Navigation shell
App.js - Restaurant discovery
screens/HomeScreen.js - Category browser
components/categories.js - Category cards
components/CardCategories.js - Featured collections
components/FeatureRows.js - Restaurant cards
components/RestaurantsCards.js - Restaurant menu
screens/RestaurantScreen.js - Dish controls
components/Dishes.js - Cart shortcut
components/CartIcon.js - Cart and totals
screens/CartScreen.js - Order screen
screens/OrderScreen.js - Delivery tracking
screens/Delivery.js
Sanity content
- Sanity client
sanity.js - Sanity CMS
- Restaurant schema
sanity/schemaTypes/restaurant.js - Other CMS models
sanity/schemaTypes
App state
- Redux store
store.js - Cart state
features/CartSlice.js - Selected restaurant
features/restaurant.js
Other components
- Customer
Connections 28
- Customer → Navigation shell: opens app
App.js - Navigation shell → Restaurant discovery: routes to
App.js - Navigation shell → Restaurant menu: routes to
App.js - Navigation shell → Cart and totals: routes to
App.js - Navigation shell → Order screen: routes to
App.js - Navigation shell → Delivery tracking: routes to
App.js - Navigation shell → Redux store: provides state
App.js - Restaurant discovery → Sanity client: fetches features
screens/HomeScreen.js - Restaurant discovery → Category browser: renders
screens/HomeScreen.js - Restaurant discovery → Featured collections: renders
screens/HomeScreen.js - Category browser → Category cards: renders
components/categories.js - Featured collections → Sanity client: fetches restaurants
components/FeatureRows.js - Featured collections → Restaurant cards: renders
components/FeatureRows.js - Restaurant menu → Dish controls: renders
screens/RestaurantScreen.js - Restaurant menu → Cart shortcut: renders
screens/RestaurantScreen.js - Restaurant menu → Selected restaurant: sets selection
screens/RestaurantScreen.js - Dish controls → Cart state: dispatches updates
components/Dishes.js - Cart shortcut → Cart state: reads items
components/CartIcon.js - Cart and totals → Cart state: reads and removes
screens/CartScreen.js - Cart and totals → Selected restaurant: reads selection
screens/CartScreen.js - Cart and totals → Sanity client: builds image URLs
screens/CartScreen.js - Cart and totals → Order screen: navigates to
screens/CartScreen.js - Delivery tracking → Selected restaurant: reads selection
screens/Delivery.js - Redux store → Cart state: registers reducer
store.js - Redux store → Selected restaurant: registers reducer
store.js - Sanity client → Sanity CMS: queries content
sanity.js - Restaurant schema → Sanity CMS: defines restaurant documents
- Other CMS models → Sanity CMS: defines CMS content