# sasha1189/myapp_react_navigation_matrimonial_rork_ui architecture

> Architecture diagram of the GitHub repository sasha1189/myapp_react_navigation_matrimonial_rork_ui, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui
- Repository: https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui

## Overview

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: [`src/App.tsx`](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/App.tsx) (App composition), [`src/context/AuthContext.tsx`](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/context/AuthContext.tsx) (Authentication state), [`src/features/home/services/feedRepository.ts`](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/home/services/feedRepository.ts) (Feed repository), [`src/features/profile/context/ProfileContext.tsx`](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/context/ProfileContext.tsx) (Profile state and editing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_root["App composition<br/>[App.tsx]"]
  node_navigation["Navigation flows<br/>[RootNavigator.tsx]"]
  node_theme["Theme preferences<br/>[ThemeContext.tsx]"]
end

subgraph group_identity["Identity and profiles"]
  node_authscreens["Sign-in and signup"]
  node_authflow["Email login flow<br/>[useLoginEmail.ts]"]
  node_authstate["Authentication state<br/>[AuthContext.tsx]"]
  node_userrecord["User records<br/>[userService.ts]"]
  node_profile["Profile state and editing<br/>[ProfileContext.tsx]"]
  node_profiletypes["Profile model<br/>[profile.ts]"]
  node_photomanager["Profile photo manager<br/>[usePhotoManager.ts]"]
  node_photoapi["Photo APIs<br/>[photoApis.ts]"]
  node_verification["Verification documents<br/>[useDocManager.ts]"]
end

subgraph group_discovery["Profile discovery"]
  node_home["Home and discovery<br/>[HomeScreen.tsx]"]
  node_feedhooks["Feed queries<br/>[useSearchFeed.ts]"]
  node_feedrepo["Feed repository<br/>[feedRepository.ts]"]
end

subgraph group_engagement["Social and membership"]
  node_blocks["Blocked profiles<br/>[blocksService.ts]"]
  node_likes["Likes and interest<br/>[likesService.ts]"]
  node_messages["Chat and inbox<br/>[useChatSession.ts]"]
  node_subscription["Plans and entitlement<br/>[useSubscription.ts]"]
end

subgraph group_platform["Data and synchronization"]
  node_feeddb[("Local profile feeds<br/>[sqlprofiles.ts]")]
  node_firebase["Firebase services<br/>[firebase.ts]"]
  node_sync["Background synchronization<br/>[syncFeedService.ts]"]
  node_sqlite[("SQLite database<br/>[client.ts]")]
  node_cache[("Local cache<br/>[cacheConfig.ts]")]
  node_databasecontext["Database lifecycle"]
end

node_user(("App user"))

node_user -.->|"opens app"| node_root
node_root -->|"renders"| node_navigation
node_root -->|"provides auth"| node_authstate
node_root -->|"provides profile"| node_profile
node_root -->|"provides database"| node_databasecontext
node_user -.->|"starts account flow"| node_authscreens
node_authscreens -->|"uses login flow"| node_authflow
node_authstate -->|"fetches user"| node_userrecord
node_authstate -->|"caches auth state"| node_cache
node_user -.->|"edits profile"| node_profile
node_profile -->|"uses profile model"| node_profiletypes
node_photomanager -->|"updates profile"| node_profile
node_photomanager -->|"requests upload URLs"| node_photoapi
node_user -.->|"submits documents"| node_verification
node_user -.->|"browses matches"| node_home
node_home -.->|"loads feed"| node_feedhooks
node_feedhooks -->|"queries profiles"| node_feedrepo
node_feedrepo -->|"queries feed rows"| node_sqlite
node_sqlite -->|"uses schema"| node_feeddb
node_feedrepo -->|"reads block cache"| node_blocks
node_feedrepo -->|"reads likes cache"| node_likes
node_user -.->|"expresses interest"| node_likes
node_user -.->|"blocks profiles"| node_blocks
node_user -.->|"starts conversations"| node_messages
node_messages -.->|"uses realtime services"| node_firebase
node_user -.->|"views plans"| node_subscription
node_subscription -->|"uses account entitlement"| node_authstate
node_sync -->|"synchronizes feed"| node_firebase
node_sync -->|"updates local feed"| node_sqlite
node_databasecontext -->|"runs migrations"| node_sqlite
node_authstate -->|"starts verification sync"| node_sync
node_theme -->|"persists theme"| node_cache

click node_root "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/App.tsx"
click node_navigation "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/navigation/RootNavigator.tsx"
click node_authscreens "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/auth/screens/EmailSignInScreen.tsx"
click node_authflow "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/auth/hooks/useLoginEmail.ts"
click node_authstate "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/context/AuthContext.tsx"
click node_userrecord "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/auth/services/userService.ts"
click node_profile "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/context/ProfileContext.tsx"
click node_profiletypes "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/types/profile.ts"
click node_photomanager "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/hooks/usePhotoManager.ts"
click node_photoapi "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/api/photoApis.ts"
click node_verification "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/hooks/useDocManager.ts"
click node_home "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/home/screens/HomeScreen.tsx"
click node_feedhooks "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/home/hooks/useSearchFeed.ts"
click node_feedrepo "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/home/services/feedRepository.ts"
click node_feeddb "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/db/schema/sqlprofiles.ts"
click node_blocks "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/block/services/blocksService.ts"
click node_likes "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/likes/services/likesService.ts"
click node_messages "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/messages/hooks/useChatSession.ts"
click node_subscription "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/subscription/hooks/useSubscription.ts"
click node_firebase "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/config/firebase.ts"
click node_sync "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/sync/services/syncFeedService.ts"
click node_sqlite "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/db/client.ts"
click node_cache "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/cacheMMKV/cacheConfig.ts"
click node_databasecontext "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/db/context/DatabaseContext.tsx"
click node_theme "https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/theme/ThemeContext.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_root,node_navigation,node_theme,node_user toneBlue
class node_authscreens,node_authflow,node_authstate,node_userrecord,node_profile,node_profiletypes,node_photomanager,node_photoapi,node_verification toneAmber
class node_home,node_feedhooks,node_feedrepo toneMint
class node_blocks,node_likes,node_messages,node_subscription toneRose
class node_feeddb,node_firebase,node_sync,node_sqlite,node_cache,node_databasecontext toneIndigo
```

## Components

### App and navigation

- [App composition](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/App.tsx): `src/App.tsx`
- [Navigation flows](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/navigation/RootNavigator.tsx): `src/navigation/RootNavigator.tsx`
- [Theme preferences](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/theme/ThemeContext.tsx): `src/theme/ThemeContext.tsx`

### Identity and profiles

- [Sign-in and signup](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/auth/screens/EmailSignInScreen.tsx): `src/features/auth/screens/EmailSignInScreen.tsx`
- [Email login flow](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/auth/hooks/useLoginEmail.ts): `src/features/auth/hooks/useLoginEmail.ts`
- [Authentication state](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/context/AuthContext.tsx): `src/context/AuthContext.tsx`
- [User records](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/auth/services/userService.ts): `src/features/auth/services/userService.ts`
- [Profile state and editing](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/context/ProfileContext.tsx): `src/features/profile/context/ProfileContext.tsx`
- [Profile model](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/types/profile.ts): `src/features/profile/types/profile.ts`
- [Profile photo manager](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/hooks/usePhotoManager.ts): `src/features/profile/hooks/usePhotoManager.ts`
- [Photo APIs](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/api/photoApis.ts): `src/features/profile/api/photoApis.ts`
- [Verification documents](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/profile/hooks/useDocManager.ts): `src/features/profile/hooks/useDocManager.ts`

### Profile discovery

- [Home and discovery](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/home/screens/HomeScreen.tsx): `src/features/home/screens/HomeScreen.tsx`
- [Feed queries](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/home/hooks/useSearchFeed.ts): `src/features/home/hooks/useSearchFeed.ts`
- [Feed repository](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/home/services/feedRepository.ts): `src/features/home/services/feedRepository.ts`

### Social and membership

- [Blocked profiles](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/block/services/blocksService.ts): `src/features/block/services/blocksService.ts`
- [Likes and interest](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/likes/services/likesService.ts): `src/features/likes/services/likesService.ts`
- [Chat and inbox](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/messages/hooks/useChatSession.ts): `src/features/messages/hooks/useChatSession.ts`
- [Plans and entitlement](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/subscription/hooks/useSubscription.ts): `src/features/subscription/hooks/useSubscription.ts`

### Data and synchronization

- [Local profile feeds](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/db/schema/sqlprofiles.ts): `src/db/schema/sqlprofiles.ts`
- [Firebase services](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/config/firebase.ts): `src/config/firebase.ts`
- [Background synchronization](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/features/sync/services/syncFeedService.ts): `src/features/sync/services/syncFeedService.ts`
- [SQLite database](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/db/client.ts): `src/db/client.ts`
- [Local cache](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/cacheMMKV/cacheConfig.ts): `src/cacheMMKV/cacheConfig.ts`
- [Database lifecycle](https://github.com/sasha1189/myapp_react_navigation_matrimonial_rork_ui/blob/master/src/db/context/DatabaseContext.tsx): `src/db/context/DatabaseContext.tsx`

### Other components

- **App user**

## Connections

- App user → App composition: opens app
- App composition → Navigation flows: renders (evidence: `src/App.tsx`)
- App composition → Authentication state: provides auth (evidence: `src/App.tsx`)
- App composition → Profile state and editing: provides profile (evidence: `src/App.tsx`)
- App composition → Database lifecycle: provides database (evidence: `src/App.tsx`)
- App user → Sign-in and signup: starts account flow
- Sign-in and signup → Email login flow: uses login flow (evidence: `src/features/auth/screens/EmailSignInScreen.tsx`)
- Authentication state → User records: fetches user (evidence: `src/context/AuthContext.tsx`)
- Authentication state → Local cache: caches auth state (evidence: `src/context/AuthContext.tsx`)
- App user → Profile state and editing: edits profile
- Profile state and editing → Profile model: uses profile model (evidence: `src/features/profile/context/ProfileContext.tsx`)
- Profile photo manager → Profile state and editing: updates profile (evidence: `src/features/profile/hooks/usePhotoManager.ts`)
- Profile photo manager → Photo APIs: requests upload URLs (evidence: `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 (evidence: `src/features/home/hooks/useSearchFeed.ts`)
- Feed repository → SQLite database: queries feed rows (evidence: `src/features/home/services/feedRepository.ts`)
- SQLite database → Local profile feeds: uses schema (evidence: `src/db/client.ts`)
- Feed repository → Blocked profiles: reads block cache (evidence: `src/features/home/services/feedRepository.ts`)
- Feed repository → Likes and interest: reads likes cache (evidence: `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 (evidence: `src/features/messages/hooks/useChatSession.ts`)
- App user → Plans and entitlement: views plans
- Plans and entitlement → Authentication state: uses account entitlement (evidence: `src/features/subscription/hooks/useSubscription.ts`)
- Background synchronization → Firebase services: synchronizes feed (evidence: `src/features/sync/services/syncFeedService.ts`)
- Background synchronization → SQLite database: updates local feed (evidence: `src/features/sync/services/syncFeedService.ts`)
- Database lifecycle → SQLite database: runs migrations (evidence: `src/db/context/DatabaseContext.tsx`)
- Authentication state → Background synchronization: starts verification sync (evidence: `src/context/AuthContext.tsx`)
- Theme preferences → Local cache: persists theme (evidence: `src/theme/ThemeContext.tsx`)
