How kprafullasd-rgb/dailyneeds-releases works
DailyNeeds is a React Native grocery-delivery app for customers and a shop administrator. The main flow is sign-up/login, browse and search the catalog, manage cart and promotions, choose payment, place an order, then view order history or live tracking; admins monitor orders and update their status. Firebase Auth and Firestore provide identity and order storage, while Razorpay, WhatsApp, location selection, and push notifications are documented product capabilities. The graph follows shown imports/calls and README claims; unsampled screens and integrations are included only where documented, without inferring their wiring.
Main entry points: App.js Navigation and app shell · CheckoutScreen.js Checkout · orders.js Order operations · AuthScreen.js Sign-in and signup
Components 24
Mobile experience
- Navigation and app shell
App.js - Sign-in and signup
src/screens/AuthScreen.js - Catalog browsing
src/screens/HomeScreen.js - Cart view
src/screens/CartScreen.js - Checkout
src/screens/CheckoutScreen.js - Order confirmation
src/screens/OrderSuccessScreen.js - Order history
src/screens/OrdersScreen.js - Live order tracking
src/screens/OrderTrackingScreen.js - Admin order management
src/screens/admin/AdminDashboard.js - Customer profile
src/screens/ProfileScreen.js
Shopping and orders
- Product catalog
src/data/products.js - Cart and promotions
src/context/CartContext.js - Order operations
src/utils/orders.js
Identity and state
- Authentication state
src/context/AuthContext.js - Theme tokens
src/config/theme.js
Backend and integrations
- Razorpay payments
src/utils/razorpay.js - Firebase setup
src/config/firebase.js - Firestore
- WhatsApp alerts and support
src/utils/whatsapp.js - Push notifications
src/utils/notifications.js - Location picker
Other components
- Customer
- Shop admin
- Shop owner
Connections 37
- Customer → Navigation and app shell: opens app
README.md - Navigation and app shell → Authentication state: provides auth
App.js - Navigation and app shell → Cart and promotions: provides cart
App.js - Navigation and app shell → Sign-in and signup: routes unauthenticated
App.js - Navigation and app shell → Catalog browsing: routes signed-in
App.js - Navigation and app shell → Cart view: routes to
App.js - Navigation and app shell → Checkout: routes to
App.js - Navigation and app shell → Order confirmation: routes to
App.js - Navigation and app shell → Order history: routes to
App.js - Navigation and app shell → Live order tracking: routes to
App.js - Navigation and app shell → Customer profile: routes to
App.js - Navigation and app shell → Admin order management: routes for admin
App.js - Navigation and app shell → Product catalog: supplies catalog
App.js - Sign-in and signup → Authentication state: signs in/up
src/screens/AuthScreen.js - Authentication state → Firebase setup: uses auth and data
src/context/AuthContext.js - Firebase setup → Firestore: configures client
src/config/firebase.js - Catalog browsing → Product catalog: browses catalog
src/screens/HomeScreen.js - Catalog browsing → Cart and promotions: adds items
src/screens/HomeScreen.js - Cart view → Cart and promotions: reads cart
src/screens/CartScreen.js - Checkout → Cart and promotions: reads cart totals
src/screens/CheckoutScreen.js - Checkout → Order operations: places order
src/screens/CheckoutScreen.js - Order operations → Firestore: writes and subscribes
src/utils/orders.js - Checkout → WhatsApp alerts and support: sends order alert
src/screens/CheckoutScreen.js - WhatsApp alerts and support → Shop owner: opens alert chat
src/utils/whatsapp.js - Checkout → Razorpay payments: accepts UPI payment
- Razorpay payments → Customer: charges UPI
- Customer → Checkout: selects COD or UPI
README.md - Order history → Order operations: subscribes user orders
src/screens/OrdersScreen.js - Live order tracking → Firestore: tracks order live
- Shop admin → Admin order management: manages orders
README.md - Admin order management → Order operations: updates order status
src/screens/admin/AdminDashboard.js - Order operations → Firestore: updates status
src/utils/orders.js - Navigation and app shell → Push notifications: registers notifications
App.js - Push notifications → Firebase setup: uses Firebase
src/utils/notifications.js - Sign-in and signup → Location picker: picks signup location
- Sign-in and signup → Theme tokens: styles screen
src/screens/AuthScreen.js - Navigation and app shell → Theme tokens: styles navigation
App.js