How tafseelkhan/tizzyos works
TizzyGo is a React Native multi-role app with ride-hailing, seller/shop, shipping, and warehouse/employee workflows. The runtime starts in the app’s provider composition, then presents role-specific screens; ride actions additionally coordinate socket events, ride APIs, and navigation. The tree and source index establish the major domains, but several screens and API slices were not sampled, so unsourced connections are omitted. Ads form a separate capability; app-level initialization is commented out in the sampled root.
Main entry points: index.tsx Screen Navigation · useRideActions.ts Ride Actions · tokenSlice.ts Token Storage · authLoginService.ts Auth Services
Components 19
App Shell
- Provider Root
App.tsx - App Content
src/api/connections/snippet/AppContent.tsx - Screen Navigation
src/navigations/index.tsx - Home Experience
src/core/components/home/BottomNavigation.tsx
Identity
- Authentication
src/api/features/public/authPublicSlice.ts - Auth Services
src/core/services/auth/authLoginService.ts - Token Storage
src/api/connections/token/tokenSlice.ts
Ride Operations
- Ride Screens
src/core/components/cab/rideRequest/tracking/RideTracking.tsx - Ride Actions
src/core/hooks/cab/useRideActions.ts - Ride Request Events
src/api/connections/handlers/sockets/rideRequestSocketHandler.ts - Ride API
src/api/features/private/driverRidePrivateSlice.ts - Driver Registration
src/core/services/cab/cabService.ts
Commerce And Shipping
- Seller And Shop
src/core/components/shop - Shipping Onboarding
src/core/components/shipping/onboarding/Apply/Register.tsx - Warehouse And Employees
src/core/services/fws/employeeServices.ts
Platform Services
- Socket Service
src/core/utils/socket/socketUtils.ts - Ad Management
src/api/ads/managers/InterstitialManager.ts - Interstitial Service
src/api/ads/services/InterstitialService.ts
Other components
- App User
Connections 18
- App User → Provider Root: opens app
App.tsx - Provider Root → App Content: renders
App.tsx - Auth Services → Authentication: dispatches auth
src/core/services/auth/authLoginService.ts - Authentication → Token Storage: uses token
src/api/features/public/authPublicSlice.ts - Auth Services → Token Storage: accesses token
- Ride Actions → Ride Request Events: handles requests
src/core/hooks/cab/useRideActions.ts - Ride Actions → Ride API: calls ride API
src/core/hooks/cab/useRideActions.ts - Ride Actions → Screen Navigation: navigates
src/core/hooks/cab/useRideActions.ts - Ride Request Events → Socket Service: uses socket
src/api/connections/handlers/sockets/rideRequestSocketHandler.ts - Socket Service → Token Storage: reads token
src/core/utils/socket/socketUtils.ts - Driver Registration → Ride API: uses driver API
src/core/services/cab/cabService.ts - Warehouse And Employees → App User: supports employee workflow
- Screen Navigation → Home Experience: routes to
src/navigations/index.tsx - Screen Navigation → Ride Screens: routes to
src/navigations/index.tsx - Screen Navigation → Seller And Shop: routes to
src/navigations/index.tsx - Screen Navigation → Shipping Onboarding: routes to
src/navigations/index.tsx - Screen Navigation → Warehouse And Employees: routes to
src/navigations/index.tsx - Ad Management → Interstitial Service: delegates loading
src/api/ads/managers/InterstitialManager.ts