How surendharramaraj/meatclone works
This is an Expo/React Native shopping app. The principal flow is location selection, nearby-shop browsing, product selection and cart management, then delivery-address selection and order placement. Location, address, and shop context live in React context; cart state is managed by Redux. The tree also includes login, order tracking, and drawer screens, but their internal behavior and wiring are mostly unsampled. Edges reflect shown calls, imports, or documented screen registration; unsampled subsystems are not connected speculatively.
Main entry points: App.js App and routing · Home.js Shop discovery screen · ContextProvider.js Session and location context · SummaryClone.js Cart and checkout
Components 29
App navigation
- App and routing
App.js - Session and location context
GlobalContext/ContextProvider.js
Location and shops
- Location picker
Home/SplashMap.js - Shop discovery screen
Home/Home.js - Shop categories
Home/Category.js - Shop listing
Home/Shop.js - Shop details
Home/ShopDetail.js
Cart and checkout
- Product selection
Home/ShopItem.js - Cart state
redux/reducers/cartReducers.js - Redux store
redux/store.js - Root reducer
redux/reducers/index.js - Cart and checkout
Home/SummaryClone.js - Alternate order summary
Home/Summary.js - Delivery address form
Home/DeliverActionSheet.js - Address selection
Home/Address.js - Specific address view
Home/SpecificAddress.js - Empty cart view
Home/EmptyCart.js
Account and orders
- Login
Home/Login.js - Order tracking
Home/TrackOrder.js - Custom drawer
DrawerComponents/CustomDrawer.js - Profile screen
DrawerComponents/ProfileScreen.js - Order history
DrawerComponents/OrderHistory.js - Drawer tracking view
DrawerComponents/TrackOrder.js - Help center
DrawerComponents/HelpCenter.js
Other components
- Customer
- Shop service
- Maps service
- Device location
- Order and address service
Connections 33
- Customer → App and routing: opens
App.js - App and routing → Session and location context: provides context
App.js - App and routing → Login: routes unauthenticated
App.js - App and routing → Location picker: routes authenticated
App.js - App and routing → Shop discovery screen: routes
App.js - App and routing → Shop details: routes
App.js - App and routing → Cart and checkout: routes
App.js - App and routing → Delivery address form: routes
App.js - App and routing → Address selection: routes
App.js - App and routing → Order tracking: routes
App.js - App and routing → Empty cart view: routes
App.js - App and routing → Redux store: provides store
App.js - Location picker → Device location: requests coordinates
Home/SplashMap.js - Location picker → Maps service: fetches address details
Home/SplashMap.js - Location picker → Session and location context: updates location
Home/SplashMap.js - Shop discovery screen → Shop categories: renders
Home/Home.js - Shop discovery screen → Shop listing: renders
Home/Home.js - Shop discovery screen → Session and location context: reads location
Home/Home.js - Shop discovery screen → Shop service: fetches nearby shops
Home/Home.js - Shop details → Product selection: renders
Home/ShopDetail.js - Product selection → Cart state: dispatches cart actions
Home/ShopItem.js - Product selection → Session and location context: sets shop details
Home/ShopItem.js - Redux store → Root reducer: configures
redux/store.js - Root reducer → Cart state: delegates
redux/reducers/index.js - Cart and checkout → Cart state: dispatches cart actions
Home/SummaryClone.js - Cart and checkout → Order and address service: posts order
Home/SummaryClone.js - Cart and checkout → Session and location context: reads delivery details
Home/SummaryClone.js - Cart and checkout → Shop discovery screen: navigates after order
Home/SummaryClone.js - Alternate order summary → Cart state: dispatches cart actions
Home/Summary.js - Alternate order summary → Order and address service: posts order
Home/Summary.js - Alternate order summary → Shop discovery screen: navigates after order
Home/Summary.js - Delivery address form → Order and address service: saves address
Home/DeliverActionSheet.js - Delivery address form → Session and location context: reads and updates address
Home/DeliverActionSheet.js