How sasha1189/myapp_react_navigation_matrimonial_rork_ui works
This is a matrimonial matchmaking app: users authenticate, build and verify a profile, discover and filter profiles, express interest, and communicate. Subscription tiers and profile verification also shape access. The graph highlights those product stages and the local-data/sync layer. Several feature modules are known from the repository tree but were not sampled; their connections are shown only as unverified dashed relationships, not asserted call paths.
Main entry points: App.tsx App composition · AuthContext.tsx Authentication state · feedRepository.ts Feed repository · ProfileContext.tsx Profile state and editing
Components 26
App and navigation
- App composition
src/App.tsx - Navigation flows
src/navigation/RootNavigator.tsx - Theme preferences
src/theme/ThemeContext.tsx
Identity and profiles
- Sign-in and signup
src/features/auth/screens/EmailSignInScreen.tsx - Email login flow
src/features/auth/hooks/useLoginEmail.ts - Authentication state
src/context/AuthContext.tsx - User records
src/features/auth/services/userService.ts - Profile state and editing
src/features/profile/context/ProfileContext.tsx - Profile model
src/features/profile/types/profile.ts - Profile photo manager
src/features/profile/hooks/usePhotoManager.ts - Photo APIs
src/features/profile/api/photoApis.ts - Verification documents
src/features/profile/hooks/useDocManager.ts
Profile discovery
- Home and discovery
src/features/home/screens/HomeScreen.tsx - Feed queries
src/features/home/hooks/useSearchFeed.ts - Feed repository
src/features/home/services/feedRepository.ts
Social and membership
- Blocked profiles
src/features/block/services/blocksService.ts - Likes and interest
src/features/likes/services/likesService.ts - Chat and inbox
src/features/messages/hooks/useChatSession.ts - Plans and entitlement
src/features/subscription/hooks/useSubscription.ts
Data and synchronization
- Local profile feeds
src/db/schema/sqlprofiles.ts - Firebase services
src/config/firebase.ts - Background synchronization
src/features/sync/services/syncFeedService.ts - SQLite database
src/db/client.ts - Local cache
src/cacheMMKV/cacheConfig.ts - Database lifecycle
src/db/context/DatabaseContext.tsx
Other components
- App user
Connections 32
- App user → App composition: opens app
- App composition → Navigation flows: renders
src/App.tsx - App composition → Authentication state: provides auth
src/App.tsx - App composition → Profile state and editing: provides profile
src/App.tsx - App composition → Database lifecycle: provides database
src/App.tsx - App user → Sign-in and signup: starts account flow
- Sign-in and signup → Email login flow: uses login flow
src/features/auth/screens/EmailSignInScreen.tsx - Authentication state → User records: fetches user
src/context/AuthContext.tsx - Authentication state → Local cache: caches auth state
src/context/AuthContext.tsx - App user → Profile state and editing: edits profile
- Profile state and editing → Profile model: uses profile model
src/features/profile/context/ProfileContext.tsx - Profile photo manager → Profile state and editing: updates profile
src/features/profile/hooks/usePhotoManager.ts - Profile photo manager → Photo APIs: requests upload URLs
src/features/profile/hooks/usePhotoManager.ts - App user → Verification documents: submits documents
- App user → Home and discovery: browses matches
- Home and discovery → Feed queries: loads feed
- Feed queries → Feed repository: queries profiles
src/features/home/hooks/useSearchFeed.ts - Feed repository → SQLite database: queries feed rows
src/features/home/services/feedRepository.ts - SQLite database → Local profile feeds: uses schema
src/db/client.ts - Feed repository → Blocked profiles: reads block cache
src/features/home/services/feedRepository.ts - Feed repository → Likes and interest: reads likes cache
src/features/home/services/feedRepository.ts - App user → Likes and interest: expresses interest
- App user → Blocked profiles: blocks profiles
- App user → Chat and inbox: starts conversations
- Chat and inbox → Firebase services: uses realtime services
src/features/messages/hooks/useChatSession.ts - App user → Plans and entitlement: views plans
- Plans and entitlement → Authentication state: uses account entitlement
src/features/subscription/hooks/useSubscription.ts - Background synchronization → Firebase services: synchronizes feed
src/features/sync/services/syncFeedService.ts - Background synchronization → SQLite database: updates local feed
src/features/sync/services/syncFeedService.ts - Database lifecycle → SQLite database: runs migrations
src/db/context/DatabaseContext.tsx - Authentication state → Background synchronization: starts verification sync
src/context/AuthContext.tsx - Theme preferences → Local cache: persists theme
src/theme/ThemeContext.tsx