How meghanadhanani/meetups works
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: SignupScreen.js Authentication & profile · Appnavigator.js App navigator · SplashScreen.js Startup & onboarding · HomeScreen.js Home
Components 19
Native Hosts
- Android host · Initializes the React Native runtime on Android.
android/app/src/main/java/com/meetups/MainActivity.kt - iOS host · Initializes the React Native runtime on iOS.
ios/MeetUps/AppDelegate.swift - Android manifest · App identity, permissions, and startup configuration.
android/app/src/main/AndroidManifest.xml - iOS app metadata · iOS identity and startup configuration.
ios/MeetUps/Info.plist
React Native App
- JavaScript entry
index.js - App shell
App.jsx - App navigator · Controls startup, authentication, and main-app transitions.
src/navigation/Appnavigator.js - Startup & onboarding · Splash plus the three sequential onboarding screens.
src/screens/SplashScreen.js - Authentication & profile · Signup, login, OTP, account security, and profile creation.
src/auth/SignupScreen.js - Home · Primary post-authentication experience.
src/screens/HomeScreen.js - Shared UI · Reusable onboarding button and shared styles.
src/common/OnboardingButton.js
Client Boundaries
- Form validation
src/utils/validations - API helper · Encapsulates calls to remote backend endpoints.
src/utils/ApiHelper.js - Storage utilities · Centralizes retained session and onboarding state.
src/utils/StorageUtils.js - Feedback UI · Toast and loader presentation outside feature screens.
src/utils/ToastMessages.js
Build Infrastructure
- Metro config
metro.config.js - Package manifest
package.json - Android Gradle build · Root and app-module Gradle configuration.
android/build.gradle - iOS Xcode & Pods · Xcode project metadata and CocoaPods configuration.
ios/MeetUps.xcodeproj/project.pbxproj
Connections 23
- 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