How tafseelkhan/tizzygo works
TizzyGo is a React Native app combining buyer commerce and cab-booking journeys. Users enter through the app’s navigation, browse products or start a ride flow, and proceed to purchase/order status or ride search. The graph highlights those domain stages and the API, session, and shared-state layer supporting them. Evidence is limited to the README, source index references, and sampled excerpts; unsampled screens and services are represented only where routing or documented references support them.
Main entry points: index.tsx Screen navigation · searchPrivateSlice.ts Search API · tokenSlice.ts Session token · fetchHandler.ts HTTP fetch helper
Components 28
App and navigation
- App providers
App.tsx - Screen navigation
src/navigations/index.tsx
Buyer commerce
- Buyer home
src/screens/home/HomeScreen.tsx - Product details
src/core/components/buyers/store/ProductDetailStore.tsx - Product search
src/core/hooks/useSearch.ts - Cart operations
src/api/features/private/addToCartPrivateSlice.ts - Checkout and payment
src/api/features/private/checkoutPaymentPrivateSlice.ts - Order success
src/core/components/buyers/inventory/OrderSuccessScreen.tsx - Order history
src/api/features/private/yourOrderPrivateSlice.ts - Product reviews
src/api/features/private/productRatingReviewStatesPrivateSlice.ts
Cab booking
- Cab discovery
src/screens/cabs/home/customerHome.tsx - Ride options
src/core/components/cabs/services/FwsRidesOptionServices.tsx - Local ride location
src/core/components/cabs/FWSLocalRide/common/LocationInput.tsx - Airport location
src/core/components/cabs/FWSAirport/common/LocationInput.tsx - Ride search flow
src/core/components/cabs/FWSLocalRide/common/RideSearchScreen.tsx
API and shared state
- Search API
src/api/features/private/searchPrivateSlice.ts - Ride booking API
src/api/features/private/rideBookingPrivateSlice.ts - Ride search socket
src/core/utils/socket/socketRideSearching.ts - Authentication API
src/api/features/public/authPublicSlice.ts - Session token
src/api/connections/token/tokenSlice.ts - Storage keys
src/api/connections/keys/storageKeys.ts - HTTP fetch helper
src/core/utils/handler/fetchHandler.ts - API configuration
src/api/connections/snippet/apiBaseUrl.ts - API endpoints
src/api/connections/snippet/apiEndpoints.ts - Theme state
src/core/contexts/theme/ThemeContext.tsx
Other components
- App user
- TizzyGo backend
- AsyncStorage
Connections 34
- App user → App providers: opens app
App.tsx - App providers → Screen navigation: renders
App.tsx - App providers → Theme state: provides theme
App.tsx - Screen navigation → Buyer home: routes to
src/navigations/index.tsx - Screen navigation → Product details: routes to
src/navigations/index.tsx - Screen navigation → Order success: routes to
src/navigations/index.tsx - Screen navigation → Cab discovery: routes to
src/navigations/index.tsx - Screen navigation → Ride options: routes to
src/navigations/index.tsx - Screen navigation → Local ride location: routes to
src/navigations/index.tsx - Screen navigation → Airport location: routes to
src/navigations/index.tsx - Screen navigation → Ride search flow: routes to
src/navigations/index.tsx - Product search → Search API: calls
src/core/hooks/useSearch.ts - Search API → Session token: reads token
src/api/features/private/searchPrivateSlice.ts - Search API → TizzyGo backend: requests search
src/api/features/private/searchPrivateSlice.ts - Search API → HTTP fetch helper: uses helper
src/api/features/private/searchPrivateSlice.ts - Search API → API configuration: uses base URL
src/api/features/private/searchPrivateSlice.ts - Search API → API endpoints: uses routes
src/api/features/private/searchPrivateSlice.ts - Cart operations → TizzyGo backend: requests cart
src/api/features/private/addToCartPrivateSlice.ts - Cart operations → Session token: reads token
src/api/features/private/addToCartPrivateSlice.ts - Checkout and payment → TizzyGo backend: requests payment
src/api/features/private/checkoutPaymentPrivateSlice.ts - Checkout and payment → HTTP fetch helper: uses helper
src/api/features/private/checkoutPaymentPrivateSlice.ts - Checkout and payment → Session token: reads token
src/api/features/private/checkoutPaymentPrivateSlice.ts - Order success → TizzyGo backend: loads order result
- Order history → TizzyGo backend: requests orders
src/api/features/private/yourOrderPrivateSlice.ts - Product reviews → TizzyGo backend: requests reviews
src/api/features/private/productRatingReviewStatesPrivateSlice.ts - Product reviews → HTTP fetch helper: uses helper
src/api/features/private/productRatingReviewStatesPrivateSlice.ts - Ride search flow → Ride booking API: books ride
src/core/components/cabs/FWSLocalRide/common/RideSearchScreen.tsx - Ride search flow → Ride search socket: uses socket
src/core/components/cabs/FWSLocalRide/common/RideSearchScreen.tsx - Ride booking API → TizzyGo backend: requests booking
- Authentication API → TizzyGo backend: requests authentication
src/api/features/public/authPublicSlice.ts - Authentication API → HTTP fetch helper: uses helper
src/api/features/public/authPublicSlice.ts - Authentication API → Session token: stores token
src/api/features/public/authPublicSlice.ts - Session token → AsyncStorage: reads and writes
src/api/connections/token/tokenSlice.ts - Session token → Storage keys: uses keys
src/api/connections/token/tokenSlice.ts