How piyush-eon/react-native-course works
Kribb is a mobile real-estate listings app. Users browse featured and searchable properties, refine results, view listing details and map locations, and save homes; admins can create listings and manage their status. Authentication is backed by Clerk-integrated Supabase access, with user/admin synchronization and saved-property state supporting gated actions. The graph includes the documented profile, saved-list, map, and listing-management areas; those routes were not sampled in full, so their internal calls are not asserted.
Main entry points: useSupabase.ts Authenticated Client Hook · search.tsx Property Search · PropertyCard.tsx Property Cards · supabase.ts Public Supabase Client
Components 20
Property Discovery
- Featured Listings
app/(root)/(tabs)/index.tsx - Property Search
app/(root)/(tabs)/search.tsx - Filter Controls
components/FilterModal.tsx - Filter State
store/filterStore.ts - Property Cards
components/PropertyCard.tsx - Featured Card
components/FeaturedCard.tsx - Property Detail
app/(root)/property/[id].tsx - Property Map
app/(root)/property/map.tsx - Saved Listings
app/(root)/(tabs)/saved.tsx
Listing Management
- Create Listing
app/(root)/(tabs)/create.tsx
Identity and Saves
- User Profile
app/(root)/(tabs)/profile.tsx - Sign In and Up
app/(auth)/sign-in.tsx - User Sync
hooks/useUserSync.ts - Saved-Property Logic
hooks/useSavedProperty.ts - Admin State
store/userStore.ts
Shared Runtime
- Public Supabase Client
lib/supabase.ts - Authenticated Client Hook
hooks/useSupabase.ts
Other components
- App User
- Supabase
- Clerk Identity
Connections 29
- App User → Featured Listings: browses
README.md - App User → Property Search: searches
app/(root)/(tabs)/search.tsx - Property Search → Public Supabase Client: queries listings
app/(root)/(tabs)/search.tsx - Property Search → Filter State: reads and updates
app/(root)/(tabs)/search.tsx - Filter Controls → Filter State: updates
components/FilterModal.tsx - Property Search → Filter Controls: opens
app/(root)/(tabs)/search.tsx - Property Search → Property Cards: renders results
app/(root)/(tabs)/search.tsx - Featured Listings → Public Supabase Client: reads listings
app/(root)/(tabs)/index.tsx - Featured Listings → Featured Card: renders featured
app/(root)/(tabs)/index.tsx - Featured Listings → Property Cards: renders listings
app/(root)/(tabs)/index.tsx - Property Cards → Property Detail: opens listing
components/PropertyCard.tsx - Property Detail → Public Supabase Client: fetches listing
app/(root)/property/[id].tsx - App User → Property Map: views locations
README.md - App User → Saved Listings: views saved homes
README.md - Saved Listings → Property Cards: renders saved homes
app/(root)/(tabs)/saved.tsx - Property Cards → Saved-Property Logic: uses save logic
components/PropertyCard.tsx - Property Detail → Saved-Property Logic: uses save logic
app/(root)/property/[id].tsx - Saved-Property Logic → Authenticated Client Hook: uses authenticated client
hooks/useSavedProperty.ts - Authenticated Client Hook → Public Supabase Client: creates client
hooks/useSupabase.ts - User Sync → Authenticated Client Hook: uses authenticated client
hooks/useUserSync.ts - User Sync → Admin State: sets admin flag
hooks/useUserSync.ts - Sign In and Up → Clerk Identity: authenticates
- Clerk Identity → Authenticated Client Hook: provides token
hooks/useSupabase.ts - Authenticated Client Hook → Supabase: sends authenticated requests
- Public Supabase Client → Supabase: sends public queries
lib/supabase.ts - App User → Create Listing: admin creates listing
README.md - Create Listing → Authenticated Client Hook: uses authenticated client
app/(root)/(tabs)/create.tsx - Property Detail → Authenticated Client Hook: admin updates listing
app/(root)/property/[id].tsx - App User → User Profile: views profile
README.md