How parthsabhaya18/nexity-frontend works
Nexity is a React Native mobile app whose sampled current implementation centers on account access: the app provides authentication state, presents the appropriate navigation stack, and lets users register, verify email, log in, or reach the signed-in home screen through an API. Authentication tokens and cached profile data persist in secure storage. The tree also contains a broader JavaScript prototype for social features, but its modules’ runtime connections are not evidenced in the sampled material, so they are shown as distinct capabilities without speculative links. Some screens named by navigation are absent from the supplied tree.
Main entry points: RootNavigator.tsx Root navigation · AuthProvider.tsx Auth state · auth.ts Auth API · RegisterScreen.tsx Registration screen
Components 29
App and navigation
- App providers
src/app/App.tsx - Root navigation
src/navigation/RootNavigator.tsx - Home screen
src/screens/HomeScreen.tsx
Authentication
- Login screen
src/screens/auth/LoginScreen.tsx - Registration screen
src/screens/auth/RegisterScreen.tsx - Email verification
src/screens/auth/VerifyEmailScreen.tsx - Auth state
src/features/auth/AuthProvider.tsx - Auth validation
src/features/auth/schemas.ts - Auth UI components
src/components/ui
API and persistence
- Auth API
src/services/api/auth.ts - HTTP client
src/services/api/client.ts - Token store
src/features/auth/tokenStore.ts - Secure storage
src/services/storage/secureStore.ts
Social prototype
- Prototype app shell
prototype/js/app.js - Prototype authentication
prototype/js/auth.js - Admin features
prototype/js/admin.js - Search
prototype/js/search.js - Settings
prototype/js/settings.js - Chat
prototype/js/chat.js - Content creation
prototype/js/create.js - Crush features
prototype/js/crush.js - Prototype data
prototype/js/data.js - Prototype home
prototype/js/home.js - Reels
prototype/js/reels.js - Safety
prototype/js/safety.js - Notifications
prototype/js/notifications.js - Subscriptions
prototype/js/subscription.js
Other components
- Mobile user
- Nexity backend
Connections 23
- Mobile user → App providers: opens
src/app/App.tsx - App providers → Auth state: provides
src/app/App.tsx - App providers → Root navigation: renders
src/app/App.tsx - Root navigation → Auth state: reads status
src/navigation/RootNavigator.tsx - Root navigation → Login screen: routes to
src/navigation/RootNavigator.tsx - Root navigation → Registration screen: routes to
src/navigation/RootNavigator.tsx - Root navigation → Email verification: routes to
src/navigation/RootNavigator.tsx - Root navigation → Home screen: routes to
src/navigation/RootNavigator.tsx - Registration screen → Auth validation: validates with
src/screens/auth/RegisterScreen.tsx - Registration screen → Auth API: checks and registers
src/screens/auth/RegisterScreen.tsx - Login screen → Auth API: authenticates with
src/screens/auth/LoginScreen.tsx - Email verification → Auth API: verifies with
src/screens/auth/VerifyEmailScreen.tsx - Login screen → Auth UI components: renders
src/screens/auth/LoginScreen.tsx - Registration screen → Auth UI components: renders
src/screens/auth/RegisterScreen.tsx - Email verification → Auth UI components: renders
src/screens/auth/VerifyEmailScreen.tsx - Auth state → Auth API: requests profile
src/features/auth/AuthProvider.tsx - Auth state → HTTP client: refreshes through
src/features/auth/AuthProvider.tsx - Auth state → Secure storage: loads and caches
src/features/auth/AuthProvider.tsx - Auth state → Token store: manages tokens
src/features/auth/AuthProvider.tsx - Auth API → HTTP client: sends requests
src/services/api/auth.ts - HTTP client → Token store: reads and updates
src/services/api/client.ts - HTTP client → Nexity backend: calls API
src/services/api/client.ts - Token store → Secure storage: persists tokens
src/features/auth/tokenStore.ts