How mathanponsingh/vhero-frontend works
VHERO is an Expo React Native frontend whose demonstrated user workflow is email-based sign-in: a user requests an OTP, enters the code, and reaches the Home screen after verification. Authentication requests are sent to the backend; the app also has an Explore route and shared theme support. The supplied excerpts show the main screen-to-API calls and navigation. Other route wiring and unsampled theme details are not inferred.
Main entry points: verify-otp.tsx OTP verification · authentication.ts Authentication API · index.tsx Email sign-in · use-theme.ts Theme hook
Components 12
Authentication flow
- Email sign-in
src/app/index.tsx - OTP verification
src/app/verify-otp.tsx - Authentication API
src/api/authentication.ts
App screens
- Home screen
src/app/Home.tsx - Explore screen
src/app/explore.tsx - App layout
src/app/_layout.tsx
Shared UI
- API and OTP values
src/constants/value.ts - Theme hook
src/hooks/use-theme.ts - Color scheme hook
src/hooks/use-color-scheme.ts - Theme colors
src/constants/theme.ts
Other components
- User
- VHERO backend
Connections 11
- User → Email sign-in: enters email
src/app/index.tsx - Email sign-in → Authentication API: requests OTP
src/app/index.tsx - Authentication API → VHERO backend: sends requests
src/api/authentication.ts - Email sign-in → OTP verification: routes with email
src/app/index.tsx - User → OTP verification: enters code
src/app/verify-otp.tsx - OTP verification → Authentication API: verifies or resends
src/app/verify-otp.tsx - Authentication API → API and OTP values: reads API URL
src/api/authentication.ts - OTP verification → API and OTP values: reads OTP settings
src/app/verify-otp.tsx - OTP verification → Home screen: routes after verify
src/app/verify-otp.tsx - Theme hook → Color scheme hook: gets scheme
src/hooks/use-theme.ts - Theme hook → Theme colors: selects colors
src/hooks/use-theme.ts