How nehagowda06/app4her works
App4Her is a mobile personal-safety app. Users enter through Home and can activate Protection Mode, which coordinates emergency contact/dialer actions, runtime tracking, and nearby Safe Havens; other routes support incident logging, room/drink safety, location sharing, fake calls, and situation guidance. The graph includes the documented screen capabilities, but several screen and controller implementations were not sampled, so their internal connections are omitted. Edges reflect only visible calls or navigator registrations.
Main entry points: AppNavigator.tsx Screen navigator · protectionController.ts Protection orchestration · safeHavenController.ts Safe Haven handling · incidentController.ts Incident handling
Components 25
App shell
- App entry
App.tsx - Screen navigator
src/navigation/AppNavigator.tsx - App layout
src/components/AppLayout.tsx
Safety features
- Home screen
src/screens/HomeScreen.tsx - Protection mode
src/screens/ProtectionModeScreen.tsx - Room and drink checks
src/screens - Situation guidance
src/screens/SituationAIScreen.tsx - Safe Haven finder
src/screens/SafeHavenScreen.tsx - Incident records
src/screens - Location sharing
src/screens/LocationShareScreen.tsx - Other safety tools
src/screens - Trusted contacts
src/screens/TrustedContactsScreen.tsx
Safety services
- Protection orchestration
src/controllers/protectionController.ts - Incident handling
src/controllers/incidentController.ts - Safe Haven handling
src/controllers/safeHavenController.ts - Incident persistence
src/services/incidentService.ts - Location services
src/services/locationService.ts - Emergency alerts
src/services/alertService.ts - Protection runtime
src/services/protectionRuntimeService.ts - Safe Haven lookup
src/services/safeHavenService.ts
Shared state
- Safety state
src/state/useSafetyStore.ts
Other components
- User
- Device location and dialer
- SMS service
- Maps app
Connections 29
- User → App entry: opens app
- App entry → Screen navigator: renders
App.tsx - Screen navigator → Home screen: registers
src/navigation/AppNavigator.tsx - Screen navigator → Protection mode: registers
src/navigation/AppNavigator.tsx - Screen navigator → Room and drink checks: registers
src/navigation/AppNavigator.tsx - Screen navigator → Situation guidance: registers
src/navigation/AppNavigator.tsx - Screen navigator → Safe Haven finder: registers
src/navigation/AppNavigator.tsx - Screen navigator → Incident records: registers
src/navigation/AppNavigator.tsx - Screen navigator → Location sharing: registers
src/navigation/AppNavigator.tsx - Screen navigator → Other safety tools: registers
src/navigation/AppNavigator.tsx - Home screen → App layout: renders
src/screens/HomeScreen.tsx - Home screen → Protection orchestration: invokes
src/screens/HomeScreen.tsx - Protection orchestration → Safety state: reads and updates
src/controllers/protectionController.ts - Protection orchestration → Safe Haven handling: loads havens
src/controllers/protectionController.ts - Protection orchestration → Protection runtime: starts runtime
src/controllers/protectionController.ts - Protection orchestration → Emergency alerts: calls contacts
src/controllers/protectionController.ts - Protection orchestration → Incident handling: invokes
src/controllers/protectionController.ts - Emergency alerts → Device location and dialer: opens dialer
- Protection runtime → Location services: uses location
src/services/protectionRuntimeService.ts - Safe Haven handling → Location services: gets location
src/controllers/safeHavenController.ts - Safe Haven handling → Safe Haven lookup: fetches havens
src/controllers/safeHavenController.ts - Safe Haven handling → Safety state: updates
src/controllers/safeHavenController.ts - Safe Haven handling → Maps app: opens directions
- Incident handling → Incident persistence: loads and saves
src/controllers/incidentController.ts - Incident handling → Location services: gets location
src/controllers/incidentController.ts - Incident handling → Safety state: updates incidents
src/controllers/incidentController.ts - Room and drink checks → Incident handling: uses
src/screens/RoomSafetyScreen.tsx - Location services → Device location and dialer: requests location
src/services/locationService.ts - Trusted contacts → Screen navigator: route registered
src/navigation/AppNavigator.tsx