# meghanadhanani/meetups architecture

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

- Interactive diagram: https://gitdiagram.com/meghanadhanani/meetups
- Repository: https://github.com/meghanadhanani/meetups

## Overview

#### Purpose and Entry Points
This is a React Native mobile app named MeetUps, targeting Android and iOS. JavaScript starts at `index.js`, renders the root component in `App.jsx`, and is bundled by Metro. Native hosts initialize the React Native runtime through `android/app/src/main/java/com/meetups/MainActivity.kt` and `ios/MeetUps/AppDelegate.swift`.

#### Root Application and Navigation
`App.jsx` is the JavaScript application shell and hands control to the navigation layer in `src/navigation/Appnavigator.js`. That navigator is the central control boundary for moving between splash, onboarding, authentication, and the main app experience.

#### Initial User Journey
The startup and onboarding flow is represented by `src/screens/SplashScreen.js` and the sequential onboarding screens `src/screens/OnboardingScreen1.js`, `src/screens/OnboardingScreen2.js`, and `src/screens/OnboardingScreen3.js`. These screens likely establish whether a user continues into account access or the home experience; persistent state is expected to cross this boundary through storage utilities.

#### Authentication and Profile Setup
Account acquisition is separated into dedicated screens: `src/auth/SignupScreen.js`, `src/auth/LoginScreen.js`, and `src/auth/OTPScreen.js`. Post-authentication/account-hardening stages are `src/auth/SecureAccountScreen.js` and `src/auth/CreateProfile.js`. Form-level input checks are isolated under `src/utils/validations`, while API and storage access should remain behind `src/utils/ApiHelper.js` and `src/utils/StorageUtils.js`.

#### Main Product Surface
`src/screens/HomeScreen.js` is the primary post-navigation product surface. It is reached after the initial and authentication flows rather than being a separate native application. Reusable interaction and presentation primitives include `src/common/OnboardingButton.js` and shared styling in `src/common/styles.js`.

#### Client-Service and Device Boundaries
The JavaScript UI should communicate with remote backend endpoints via `src/utils/ApiHelper.js`; no backend implementation or named external service exists in the repository tree. Locally retained session/onboarding data is centralized in `src/utils/StorageUtils.js`. User feedback and request-state presentation are handled by `src/utils/ToastMessages.js` and `src/utils/Loader.js`, keeping those concerns outside feature screens.

#### Build, Runtime, and Platform Infrastructure
Metro configuration is at `metro.config.js`; package scripts and JavaScript dependencies are defined in `package.json`. Android builds use Gradle under `android/build.gradle` and the app module `android/app/build.gradle`. iOS builds use Xcode project metadata at `ios/MeetUps.xcodeproj/project.pbxproj` and CocoaPods via `ios/Podfile`. Native app identity, permissions, and platform startup configuration sit in `android/app/src/main/AndroidManifest.xml` and `ios/MeetUps/Info.plist`.

Main entry points: [`src/auth/SignupScreen.js`](https://github.com/meghanadhanani/meetups/blob/main/src/auth/SignupScreen.js) (Authentication & profile), [`src/navigation/Appnavigator.js`](https://github.com/meghanadhanani/meetups/blob/main/src/navigation/Appnavigator.js) (App navigator), [`src/screens/SplashScreen.js`](https://github.com/meghanadhanani/meetups/blob/main/src/screens/SplashScreen.js) (Startup & onboarding), [`src/screens/HomeScreen.js`](https://github.com/meghanadhanani/meetups/blob/main/src/screens/HomeScreen.js) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_native["Native Hosts"]
  node_android_host["Android host<br/>Kotlin activity<br/>[MainActivity.kt]"]
  node_ios_host["iOS host<br/>Swift app delegate<br/>[AppDelegate.swift]"]
  node_android_manifest["Android manifest<br/>platform configuration"]
  node_ios_info["iOS app metadata<br/>platform configuration<br/>[Info.plist]"]
end

subgraph group_app["React Native App"]
  node_js_entry["JavaScript entry<br/>RN entrypoint<br/>[index.js]"]
  node_app_shell["App shell<br/>root component<br/>[App.jsx]"]
  node_navigator{{"App navigator<br/>navigation boundary<br/>[Appnavigator.js]"}}
  node_initial_flow["Startup &amp; onboarding<br/>screen flow<br/>[SplashScreen.js]"]
  node_auth_flow["Authentication &amp; profile<br/>screen flow<br/>[SignupScreen.js]"]
  node_home["Home<br/>product screen<br/>[HomeScreen.js]"]
  node_shared_ui["Shared UI<br/>presentation primitives"]
end

subgraph group_services["Client Boundaries"]
  node_validation["Form validation<br/>validation utilities"]
  node_api{{"API helper<br/>remote API boundary<br/>[ApiHelper.js]"}}
  node_storage[("Storage utilities<br/>local persistence boundary<br/>[StorageUtils.js]")]
  node_feedback["Feedback UI<br/>request-state utilities<br/>[ToastMessages.js]"]
end

subgraph group_build["Build Infrastructure"]
  node_metro["Metro config<br/>JavaScript bundler<br/>[metro.config.js]"]
  node_package["Package manifest<br/>scripts &amp; dependencies<br/>[package.json]"]
  node_android_build["Android Gradle build<br/>Android build system<br/>[build.gradle]"]
  node_ios_build["iOS Xcode &amp; Pods<br/>iOS build system<br/>[project.pbxproj]"]
end

node_android_host -->|"starts RN runtime"| node_js_entry
node_ios_host -->|"starts RN runtime"| node_js_entry
node_js_entry -->|"renders"| node_app_shell
node_app_shell -->|"hands off to"| node_navigator
node_navigator -->|"initial journey"| node_initial_flow
node_navigator -->|"account journey"| node_auth_flow
node_navigator -->|"main experience"| node_home
node_initial_flow -->|"continues to"| node_auth_flow
node_auth_flow -->|"completes to"| node_home
node_initial_flow -->|"reads/writes state"| node_storage
node_auth_flow -->|"validates inputs"| node_validation
node_auth_flow -->|"uses"| node_api
node_auth_flow -->|"persists session"| node_storage
node_auth_flow -->|"shows request state"| node_feedback
node_home -->|"uses"| node_api
node_home -->|"shows feedback"| node_feedback
node_initial_flow -->|"uses"| node_shared_ui
node_metro -->|"bundles"| node_js_entry
node_package -->|"defines dependencies"| node_metro
node_android_build -->|"builds"| node_android_host
node_android_manifest -->|"configures"| node_android_host
node_ios_build -->|"builds"| node_ios_host
node_ios_info -->|"configures"| node_ios_host

click node_android_host "https://github.com/meghanadhanani/meetups/blob/main/android/app/src/main/java/com/meetups/MainActivity.kt"
click node_ios_host "https://github.com/meghanadhanani/meetups/blob/main/ios/MeetUps/AppDelegate.swift"
click node_js_entry "https://github.com/meghanadhanani/meetups/blob/main/index.js"
click node_app_shell "https://github.com/meghanadhanani/meetups/blob/main/App.jsx"
click node_navigator "https://github.com/meghanadhanani/meetups/blob/main/src/navigation/Appnavigator.js"
click node_initial_flow "https://github.com/meghanadhanani/meetups/blob/main/src/screens/SplashScreen.js"
click node_auth_flow "https://github.com/meghanadhanani/meetups/blob/main/src/auth/SignupScreen.js"
click node_home "https://github.com/meghanadhanani/meetups/blob/main/src/screens/HomeScreen.js"
click node_shared_ui "https://github.com/meghanadhanani/meetups/blob/main/src/common/OnboardingButton.js"
click node_validation "https://github.com/meghanadhanani/meetups/tree/main/src/utils/validations"
click node_api "https://github.com/meghanadhanani/meetups/blob/main/src/utils/ApiHelper.js"
click node_storage "https://github.com/meghanadhanani/meetups/blob/main/src/utils/StorageUtils.js"
click node_feedback "https://github.com/meghanadhanani/meetups/blob/main/src/utils/ToastMessages.js"
click node_metro "https://github.com/meghanadhanani/meetups/blob/main/metro.config.js"
click node_package "https://github.com/meghanadhanani/meetups/blob/main/package.json"
click node_android_build "https://github.com/meghanadhanani/meetups/blob/main/android/build.gradle"
click node_android_manifest "https://github.com/meghanadhanani/meetups/blob/main/android/app/src/main/AndroidManifest.xml"
click node_ios_build "https://github.com/meghanadhanani/meetups/blob/main/ios/MeetUps.xcodeproj/project.pbxproj"
click node_ios_info "https://github.com/meghanadhanani/meetups/blob/main/ios/MeetUps/Info.plist"

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_android_host,node_ios_host,node_android_manifest,node_ios_info toneBlue
class node_js_entry,node_app_shell,node_navigator,node_initial_flow,node_auth_flow,node_home,node_shared_ui toneAmber
class node_validation,node_api,node_storage,node_feedback toneMint
class node_metro,node_package,node_android_build,node_ios_build toneRose
```

## Components

### Native Hosts

- [Android host](https://github.com/meghanadhanani/meetups/blob/main/android/app/src/main/java/com/meetups/MainActivity.kt): Kotlin activity · Initializes the React Native runtime on Android. · `android/app/src/main/java/com/meetups/MainActivity.kt`
- [iOS host](https://github.com/meghanadhanani/meetups/blob/main/ios/MeetUps/AppDelegate.swift): Swift app delegate · Initializes the React Native runtime on iOS. · `ios/MeetUps/AppDelegate.swift`
- [Android manifest](https://github.com/meghanadhanani/meetups/blob/main/android/app/src/main/AndroidManifest.xml): platform configuration · App identity, permissions, and startup configuration. · `android/app/src/main/AndroidManifest.xml`
- [iOS app metadata](https://github.com/meghanadhanani/meetups/blob/main/ios/MeetUps/Info.plist): platform configuration · iOS identity and startup configuration. · `ios/MeetUps/Info.plist`

### React Native App

- [JavaScript entry](https://github.com/meghanadhanani/meetups/blob/main/index.js): RN entrypoint · `index.js`
- [App shell](https://github.com/meghanadhanani/meetups/blob/main/App.jsx): root component · `App.jsx`
- [App navigator](https://github.com/meghanadhanani/meetups/blob/main/src/navigation/Appnavigator.js): navigation boundary · Controls startup, authentication, and main-app transitions. · `src/navigation/Appnavigator.js`
- [Startup & onboarding](https://github.com/meghanadhanani/meetups/blob/main/src/screens/SplashScreen.js): screen flow · Splash plus the three sequential onboarding screens. · `src/screens/SplashScreen.js`
- [Authentication & profile](https://github.com/meghanadhanani/meetups/blob/main/src/auth/SignupScreen.js): screen flow · Signup, login, OTP, account security, and profile creation. · `src/auth/SignupScreen.js`
- [Home](https://github.com/meghanadhanani/meetups/blob/main/src/screens/HomeScreen.js): product screen · Primary post-authentication experience. · `src/screens/HomeScreen.js`
- [Shared UI](https://github.com/meghanadhanani/meetups/blob/main/src/common/OnboardingButton.js): presentation primitives · Reusable onboarding button and shared styles. · `src/common/OnboardingButton.js`

### Client Boundaries

- [Form validation](https://github.com/meghanadhanani/meetups/tree/main/src/utils/validations): validation utilities · `src/utils/validations`
- [API helper](https://github.com/meghanadhanani/meetups/blob/main/src/utils/ApiHelper.js): remote API boundary · Encapsulates calls to remote backend endpoints. · `src/utils/ApiHelper.js`
- [Storage utilities](https://github.com/meghanadhanani/meetups/blob/main/src/utils/StorageUtils.js): local persistence boundary · Centralizes retained session and onboarding state. · `src/utils/StorageUtils.js`
- [Feedback UI](https://github.com/meghanadhanani/meetups/blob/main/src/utils/ToastMessages.js): request-state utilities · Toast and loader presentation outside feature screens. · `src/utils/ToastMessages.js`

### Build Infrastructure

- [Metro config](https://github.com/meghanadhanani/meetups/blob/main/metro.config.js): JavaScript bundler · `metro.config.js`
- [Package manifest](https://github.com/meghanadhanani/meetups/blob/main/package.json): scripts & dependencies · `package.json`
- [Android Gradle build](https://github.com/meghanadhanani/meetups/blob/main/android/build.gradle): Android build system · Root and app-module Gradle configuration. · `android/build.gradle`
- [iOS Xcode & Pods](https://github.com/meghanadhanani/meetups/blob/main/ios/MeetUps.xcodeproj/project.pbxproj): iOS build system · Xcode project metadata and CocoaPods configuration. · `ios/MeetUps.xcodeproj/project.pbxproj`

## Connections

- Android host → JavaScript entry: starts RN runtime
- iOS host → JavaScript entry: starts RN runtime
- JavaScript entry → App shell: renders
- App shell → App navigator: hands off to
- App navigator → Startup & onboarding: initial journey
- App navigator → Authentication & profile: account journey
- App navigator → Home: main experience
- Startup & onboarding → Authentication & profile: continues to
- Authentication & profile → Home: completes to
- Startup & onboarding → Storage utilities: reads/writes state
- Authentication & profile → Form validation: validates inputs
- Authentication & profile → API helper: uses
- Authentication & profile → Storage utilities: persists session
- Authentication & profile → Feedback UI: shows request state
- Home → API helper: uses
- Home → Feedback UI: shows feedback
- Startup & onboarding → Shared UI: uses
- Metro config → JavaScript entry: bundles
- Package manifest → Metro config: defines dependencies
- Android Gradle build → Android host: builds
- Android manifest → Android host: configures
- iOS Xcode & Pods → iOS host: builds
- iOS app metadata → iOS host: configures
