How mearslanahmed/spendwise-react-native works
SpendWise is a cross-platform personal-finance app. Users authenticate, record and scan transactions, organize funds into wallets and budgets, then review spending analytics and AI advice; they can also manage subscriptions, reminders, exports, privacy, and theme settings. Firebase provides authentication and synced data, while receipt processing uses the documented external AI backend. The graph combines README-described features with source-index-supported relationships; unsampled screens and services are represented by their exact tree paths, without claiming their internal calls were inspected.
Main entry points: firebase.ts Firebase services · authContext.tsx Authentication state · transactionService.ts Transaction operations · subscriptionService.ts Subscription processing
Components 24
Identity and app shell
- Sign-in and onboarding
app/(auth)/login.tsx - App navigation
app/_layout.tsx - Authentication state
contexts/authContext.tsx - Dynamic theming
contexts/themeContext.tsx
Finance tracking
- Finance dashboard
app/(tabs)/home.tsx - Transaction entry
app/(modals)/transactionModal.tsx - Transaction operations
services/transactionService.ts - Wallets and transfers
app/(tabs)/wallet.tsx - Wallet operations
services/walletService.ts - Budget tracking
app/(modals)/budgetModal.tsx - Synced finance state
contexts/dataContext.tsx
Insights and AI
- Spending analytics
app/(tabs)/statistics.tsx - AI financial advisor
app/(tabs)/aiAdvisor.tsx - AI and receipt service
services/aiService.ts
Account and engagement
- Subscription management
app/(modals)/manageSubscriptionModal.tsx - Subscription processing
services/subscriptionService.ts - Push reminders
services/notificationService.ts - Privacy and settings
app/(modals)/settingsModal.tsx - CSV export
app/(modals)/exportModal.tsx - Android home widget
targets/widget/android/SpendWiseWidget.kt
Platform services
- AI backend API
- Firebase services
config/firebase.ts - Image storage
services/imageService.ts
Other components
- App user
Connections 24
- App user → Sign-in and onboarding: signs in
- Sign-in and onboarding → Authentication state: authenticates through
- Authentication state → Firebase services: uses authentication
contexts/authContext.tsx - Authentication state → App navigation: protects routes
contexts/authContext.tsx - App navigation → Finance dashboard: opens dashboard
- Finance dashboard → Transaction entry: starts tracking
- Transaction entry → Transaction operations: saves transaction
- Transaction operations → Firebase services: reads and writes
services/transactionService.ts - Transaction operations → Image storage: uploads receipt
services/transactionService.ts - Image storage → Firebase services: uses app services
- Wallets and transfers → Wallet operations: manages wallets
- Wallet operations → Firebase services: stores wallet data
services/walletService.ts - Budget tracking → Firebase services: tracks budgets
- Spending analytics → Synced finance state: reads synced data
app/(tabs)/statistics.tsx - Synced finance state → Firebase services: listens for updates
contexts/dataContext.tsx - AI financial advisor → AI and receipt service: requests advice
- AI and receipt service → AI backend API: processes receipt
- Subscription management → Subscription processing: manages bills
- Subscription processing → Firebase services: updates subscriptions
services/subscriptionService.ts - Subscription processing → Push reminders: schedules reminders
services/subscriptionService.ts - Privacy and settings → Dynamic theming: sets appearance
app/(modals)/settingsModal.tsx - Dynamic theming → Firebase services: syncs preference
contexts/themeContext.tsx - CSV export → Synced finance state: exports history
- Android home widget → App user: shows spending