# manoj0203/connect architecture

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

- Interactive diagram: https://gitdiagram.com/manoj0203/connect
- Repository: https://github.com/manoj0203/connect

## Overview

Connect is a React Native social app. The principal flow starts at the welcome screen, proceeds through account creation and profile setup, then reaches the tabbed app for browsing, searching, and creating posts. Separate screens cover login, OTP and PIN security, profiles, editing, and settings. Firebase-backed user and post data is the apparent persistence layer. The README describes only the React Native starter, so feature scope is inferred from the source index and sampled components; unsampled screen details and some navigation transitions are not verified.

Main entry points: [`App.tsx`](https://github.com/manoj0203/connect/blob/main/App.tsx) (App navigation), [`services/firebaseAuth.js`](https://github.com/manoj0203/connect/blob/main/services/firebaseAuth.js) (Firebase client), [`screens/TabManagement.js`](https://github.com/manoj0203/connect/blob/main/screens/TabManagement.js) (Main tabs), [`screens/signupstack/SignupScreen.js`](https://github.com/manoj0203/connect/blob/main/screens/signupstack/SignupScreen.js) (Sign up)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["App navigation<br/>[App.tsx]"]
  node_welcome["Welcome<br/>[WelcomeScreen.js]"]
  node_tabs["Main tabs<br/>[TabManagement.js]"]
end

subgraph group_identity["Account and security"]
  node_signup["Sign up<br/>[SignupScreen.js]"]
  node_profile_setup["Profile setup<br/>[SettingUp.js]"]
  node_login["Login<br/>[LoginScreen.js]"]
  node_otp["OTP verification<br/>[AuthScreen.js]"]
  node_pin_setup["PIN setup<br/>[SetupAuth.js]"]
  node_two_factor["Two-factor security<br/>[TwoFactScreen.js]"]
  node_security_info["Security information"]
end

subgraph group_social["Social experience"]
  node_home["Home feed<br/>[HomeScreen.js]"]
  node_post_card["Post interactions<br/>[Card.js]"]
  node_create_post["Create post<br/>[CreatePost.js]"]
  node_edit_post["Edit post<br/>[EditScreen.js]"]
  node_search["User search<br/>[SearchScreen.js]"]
  node_profile["My profile<br/>[ProfileScreen.js]"]
  node_other_profile["Other profile<br/>[OtherProfile.js]"]
  node_settings["Settings<br/>[SettingsScreen.js]"]
end

subgraph group_shared["Shared services"]
  node_firebase_client["Firebase client<br/>[firebaseAuth.js]"]
  node_theme["Theme styles<br/>[Theme.ts]"]
end

node_person(("App user"))
node_firebase[("Firebase services")]

node_person -->|"opens"| node_app
node_app -->|"starts at"| node_welcome
node_app -->|"registers"| node_signup
node_app -->|"registers"| node_login
node_app -->|"registers"| node_tabs
node_app -->|"registers"| node_profile_setup
node_app -->|"registers"| node_otp
node_app -->|"registers"| node_pin_setup
node_app -->|"registers"| node_two_factor
node_app -->|"registers"| node_edit_post
node_app -->|"registers"| node_other_profile
node_app -->|"registers"| node_settings
node_app -->|"registers"| node_security_info
node_tabs -->|"shows"| node_home
node_tabs -->|"shows"| node_profile
node_tabs -->|"shows"| node_create_post
node_tabs -->|"shows"| node_search
node_signup -->|"creates account"| node_firebase_client
node_signup -->|"writes user data"| node_firebase
node_profile_setup -->|"updates profile"| node_firebase
node_search -->|"queries users"| node_firebase
node_home -->|"renders"| node_post_card
node_post_card -->|"updates posts"| node_firebase
node_home -->|"uses"| node_firebase_client
node_create_post -->|"uses"| node_firebase_client
node_edit_post -->|"uses"| node_firebase_client
node_login -->|"uses"| node_firebase_client
node_otp -->|"reads and updates"| node_firebase
node_pin_setup -->|"verifies PIN"| node_firebase
node_two_factor -->|"uses"| node_firebase_client
node_profile -->|"uses"| node_firebase_client
node_other_profile -->|"uses"| node_firebase_client
node_settings -->|"uses"| node_firebase_client
node_security_info -->|"uses"| node_firebase_client
node_firebase_client -->|"initializes access"| node_firebase
node_welcome -->|"uses"| node_firebase_client
node_app -.->|"sets shared styling"| node_theme

click node_app "https://github.com/manoj0203/connect/blob/main/App.tsx"
click node_welcome "https://github.com/manoj0203/connect/blob/main/screens/WelcomeScreen.js"
click node_tabs "https://github.com/manoj0203/connect/blob/main/screens/TabManagement.js"
click node_signup "https://github.com/manoj0203/connect/blob/main/screens/signupstack/SignupScreen.js"
click node_profile_setup "https://github.com/manoj0203/connect/blob/main/screens/signupstack/SettingUp.js"
click node_login "https://github.com/manoj0203/connect/blob/main/screens/LoginScreen.js"
click node_otp "https://github.com/manoj0203/connect/blob/main/screens/AuthScreen.js"
click node_pin_setup "https://github.com/manoj0203/connect/blob/main/screens/SetupAuth.js"
click node_two_factor "https://github.com/manoj0203/connect/blob/main/screens/TwoFactScreen.js"
click node_home "https://github.com/manoj0203/connect/blob/main/screens/HomeScreen.js"
click node_post_card "https://github.com/manoj0203/connect/blob/main/utils/Card.js"
click node_create_post "https://github.com/manoj0203/connect/blob/main/screens/CreatePost.js"
click node_edit_post "https://github.com/manoj0203/connect/blob/main/screens/EditScreen.js"
click node_search "https://github.com/manoj0203/connect/blob/main/screens/SearchScreen.js"
click node_profile "https://github.com/manoj0203/connect/blob/main/screens/ProfileScreen.js"
click node_other_profile "https://github.com/manoj0203/connect/blob/main/screens/OtherProfile.js"
click node_settings "https://github.com/manoj0203/connect/blob/main/screens/SettingsScreen.js"
click node_security_info "https://github.com/manoj0203/connect/blob/main/screens/SecurityInfoScreen.js"
click node_firebase_client "https://github.com/manoj0203/connect/blob/main/services/firebaseAuth.js"
click node_theme "https://github.com/manoj0203/connect/blob/main/utils/Theme.ts"

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_app,node_welcome,node_tabs,node_person toneBlue
class node_signup,node_profile_setup,node_login,node_otp,node_pin_setup,node_two_factor,node_security_info,node_firebase toneAmber
class node_home,node_post_card,node_create_post,node_edit_post,node_search,node_profile,node_other_profile,node_settings toneMint
class node_firebase_client,node_theme toneRose
```

## Components

### App entry

- [App navigation](https://github.com/manoj0203/connect/blob/main/App.tsx): `App.tsx`
- [Welcome](https://github.com/manoj0203/connect/blob/main/screens/WelcomeScreen.js): `screens/WelcomeScreen.js`
- [Main tabs](https://github.com/manoj0203/connect/blob/main/screens/TabManagement.js): `screens/TabManagement.js`

### Account and security

- [Sign up](https://github.com/manoj0203/connect/blob/main/screens/signupstack/SignupScreen.js): `screens/signupstack/SignupScreen.js`
- [Profile setup](https://github.com/manoj0203/connect/blob/main/screens/signupstack/SettingUp.js): `screens/signupstack/SettingUp.js`
- [Login](https://github.com/manoj0203/connect/blob/main/screens/LoginScreen.js): `screens/LoginScreen.js`
- [OTP verification](https://github.com/manoj0203/connect/blob/main/screens/AuthScreen.js): `screens/AuthScreen.js`
- [PIN setup](https://github.com/manoj0203/connect/blob/main/screens/SetupAuth.js): `screens/SetupAuth.js`
- [Two-factor security](https://github.com/manoj0203/connect/blob/main/screens/TwoFactScreen.js): `screens/TwoFactScreen.js`
- [Security information](https://github.com/manoj0203/connect/blob/main/screens/SecurityInfoScreen.js): `screens/SecurityInfoScreen.js`

### Social experience

- [Home feed](https://github.com/manoj0203/connect/blob/main/screens/HomeScreen.js): `screens/HomeScreen.js`
- [Post interactions](https://github.com/manoj0203/connect/blob/main/utils/Card.js): `utils/Card.js`
- [Create post](https://github.com/manoj0203/connect/blob/main/screens/CreatePost.js): `screens/CreatePost.js`
- [Edit post](https://github.com/manoj0203/connect/blob/main/screens/EditScreen.js): `screens/EditScreen.js`
- [User search](https://github.com/manoj0203/connect/blob/main/screens/SearchScreen.js): `screens/SearchScreen.js`
- [My profile](https://github.com/manoj0203/connect/blob/main/screens/ProfileScreen.js): `screens/ProfileScreen.js`
- [Other profile](https://github.com/manoj0203/connect/blob/main/screens/OtherProfile.js): `screens/OtherProfile.js`
- [Settings](https://github.com/manoj0203/connect/blob/main/screens/SettingsScreen.js): `screens/SettingsScreen.js`

### Shared services

- [Firebase client](https://github.com/manoj0203/connect/blob/main/services/firebaseAuth.js): `services/firebaseAuth.js`
- [Theme styles](https://github.com/manoj0203/connect/blob/main/utils/Theme.ts): `utils/Theme.ts`

### Other components

- **App user**
- **Firebase services**

## Connections

- App user → App navigation: opens (evidence: `App.tsx`)
- App navigation → Welcome: starts at (evidence: `App.tsx`)
- App navigation → Sign up: registers (evidence: `App.tsx`)
- App navigation → Login: registers (evidence: `App.tsx`)
- App navigation → Main tabs: registers (evidence: `App.tsx`)
- App navigation → Profile setup: registers (evidence: `App.tsx`)
- App navigation → OTP verification: registers (evidence: `App.tsx`)
- App navigation → PIN setup: registers (evidence: `App.tsx`)
- App navigation → Two-factor security: registers (evidence: `App.tsx`)
- App navigation → Edit post: registers (evidence: `App.tsx`)
- App navigation → Other profile: registers (evidence: `App.tsx`)
- App navigation → Settings: registers (evidence: `App.tsx`)
- App navigation → Security information: registers (evidence: `App.tsx`)
- Main tabs → Home feed: shows (evidence: `screens/TabManagement.js`)
- Main tabs → My profile: shows (evidence: `screens/TabManagement.js`)
- Main tabs → Create post: shows (evidence: `screens/TabManagement.js`)
- Main tabs → User search: shows (evidence: `screens/TabManagement.js`)
- Sign up → Firebase client: creates account (evidence: `screens/signupstack/SignupScreen.js`)
- Sign up → Firebase services: writes user data (evidence: `screens/signupstack/SignupScreen.js`)
- Profile setup → Firebase services: updates profile (evidence: `screens/signupstack/SettingUp.js`)
- User search → Firebase services: queries users (evidence: `screens/SearchScreen.js`)
- Home feed → Post interactions: renders (evidence: `screens/HomeScreen.js`)
- Post interactions → Firebase services: updates posts (evidence: `utils/Card.js`)
- Home feed → Firebase client: uses (evidence: `screens/HomeScreen.js`)
- Create post → Firebase client: uses (evidence: `screens/CreatePost.js`)
- Edit post → Firebase client: uses (evidence: `screens/EditScreen.js`)
- Login → Firebase client: uses (evidence: `screens/LoginScreen.js`)
- OTP verification → Firebase services: reads and updates (evidence: `screens/AuthScreen.js`)
- PIN setup → Firebase services: verifies PIN (evidence: `screens/SetupAuth.js`)
- Two-factor security → Firebase client: uses (evidence: `screens/TwoFactScreen.js`)
- My profile → Firebase client: uses (evidence: `screens/ProfileScreen.js`)
- Other profile → Firebase client: uses (evidence: `screens/OtherProfile.js`)
- Settings → Firebase client: uses (evidence: `screens/SettingsScreen.js`)
- Security information → Firebase client: uses (evidence: `screens/SecurityInfoScreen.js`)
- Firebase client → Firebase services: initializes access (evidence: `services/firebaseAuth.js`)
- Welcome → Firebase client: uses (evidence: `screens/WelcomeScreen.js`)
- App navigation → Theme styles: sets shared styling
