How nidhiesh/rapidrescue- works
RapidRescue is a driver-facing mobile app with a welcome entry, authentication and registration screens, and a driver dashboard. The evidenced workflow is welcome → login; authentication state delegates requests to a service abstraction currently backed by an in-memory mock. The welcome screen advertises emergency alerts, scene navigation, and a verified-responder network, but the available excerpts do not establish their implementation or connections. The dashboard and several auth screens are included as documented-by-tree runtime areas; their internal behavior was not sampled.
Main entry points: index.tsx Welcome · authService.ts Auth Service · auth.ts Auth Types · AuthContext.tsx Auth State
Components 20
App Screens
- Welcome
app/index.tsx - Login
app/(auth)/login.tsx - Registration
app/(auth)/register.tsx - Registration Success
app/(auth)/register-success.tsx - Forgot Password
app/(auth)/forgot-password.tsx - Driver Dashboard
app/(driver)/dashboard.tsx
Authentication
- Auth State
src/context/AuthContext.tsx - Auth Service
src/services/auth/authService.ts - Mock Auth
src/services/auth/mockAuthService.ts - API Placeholder
src/services/api/apiClient.ts
Shared UI
- Button
src/components/common/Button.tsx - Card
src/components/common/Card.tsx - Badge
src/components/common/Badge.tsx - Input Field
src/components/common/InputField.tsx - Screen Wrapper
src/components/common/ScreenWrapper.tsx
App Foundation
- Auth Types
src/types/auth.ts - Common Types
src/types/common.ts - Driver Types
src/types/driver.ts - Validation
src/utils/validation.ts
Other components
- Driver
Connections 11
- Driver → Welcome: opens app
app/index.tsx - Welcome → Login: routes to
app/index.tsx - Auth State → Auth Service: delegates auth
src/context/AuthContext.tsx - Auth Service → Mock Auth: uses implementation
src/services/auth/authService.ts - Auth Service → Auth Types: uses contracts
src/services/auth/authService.ts - Mock Auth → Auth Types: uses contracts
src/services/auth/mockAuthService.ts - Auth State → Auth Types: uses contracts
src/context/AuthContext.tsx - Welcome → Button: renders
app/index.tsx - Welcome → Card: renders
app/index.tsx - Welcome → Badge: renders
app/index.tsx - Welcome → Screen Wrapper: renders
app/index.tsx