How hasishinfant/parko_ works
Parko is a React Native parking app with customer booking and operator tools. Customers authenticate, browse parking, choose a spot, book and review a price, then receive a QR pass; administrators view dashboard analytics and validate passes with a scanner. The navigator gates screens by Supabase session and user role. The README documents the customer stages and admin capabilities, while source excerpts show auth calls and navigator wiring. Booking, payment, availability, and admin data implementations are only partly sampled, so their backend relationships are not inferred.
Main entry points: AppNavigator.tsx App navigation · ParkingDetailsScreen.tsx Parking details · SlotSelectionScreen.tsx Slot selection · BookingScreen.tsx Booking details
Components 18
Customer booking
- Landing
src/screens/LandingScreen.tsx - Login and signup
src/screens/auth - Parking map
src/screens/HomeScreen.tsx - Parking details
src/screens/ParkingDetailsScreen.tsx - Slot selection
src/screens/SlotSelectionScreen.tsx - Booking details
src/screens/BookingScreen.tsx - Payment summary
src/screens/PaymentScreen.tsx - QR ticket
src/screens/QRCodeScreen.tsx
Operator tools
- Admin dashboard
src/screens/AdminDashboardScreen.tsx - Pass scanner
src/screens/ScannerScreen.tsx
App foundation
- App navigation
src/navigation/AppNavigator.tsx - Supabase client
src/lib/supabase.ts - Sample parking data
src/data/dummyData.ts - Reusable UI
src/components - Theme tokens
src/theme
Other components
- Customer
- Operator
- Supabase service
Connections 27
- Customer → App navigation: opens app
README.md - Operator → App navigation: opens app
README.md - App navigation → Landing: routes unauthenticated
src/navigation/AppNavigator.tsx - App navigation → Login and signup: routes unauthenticated
src/navigation/AppNavigator.tsx - App navigation → Parking map: routes customer
src/navigation/AppNavigator.tsx - App navigation → Parking details: routes customer
src/navigation/AppNavigator.tsx - App navigation → Slot selection: routes customer
src/navigation/AppNavigator.tsx - App navigation → Booking details: routes customer
src/navigation/AppNavigator.tsx - App navigation → Payment summary: routes customer
src/navigation/AppNavigator.tsx - App navigation → QR ticket: routes customer
src/navigation/AppNavigator.tsx - App navigation → Admin dashboard: routes admin
src/navigation/AppNavigator.tsx - App navigation → Pass scanner: routes admin
src/navigation/AppNavigator.tsx - Landing → Login and signup: offers sign in
README.md - Login and signup → Supabase client: authenticates
src/screens/auth/SignupScreen.tsx - App navigation → Supabase client: checks session
src/navigation/AppNavigator.tsx - Supabase client → Supabase service: connects to
src/lib/supabase.ts - Parking map → Parking details: opens location
README.md - Parking details → Slot selection: continues booking
README.md - Slot selection → Booking details: selects spot
README.md - Booking details → Payment summary: reviews price
README.md - Payment summary → QR ticket: receives pass
README.md - Admin dashboard → Pass scanner: opens scanner
src/screens/AdminDashboardScreen.tsx - Parking map → Sample parking data: uses sample data
src/screens/HomeScreen.tsx - Parking details → Sample parking data: uses sample data
src/screens/ParkingDetailsScreen.tsx - Booking details → Sample parking data: uses sample data
src/screens/BookingScreen.tsx - Slot selection → Sample parking data: uses sample data
src/screens/SlotSelectionScreen.tsx - Reusable UI → Theme tokens: uses tokens
src/components/Button.tsx