How marcoleder/afribit-wallet works
Main Components
a. Mobile Application Layer (Frontend)
• React Native Core (iOS & Android)
• UI Components (/app/components)
• Navigation System (/app/navigation)
• Screen Management (/app/screens)
• State Management (/app/store)
• Internationalization System (/app/i18n)
b. Data & Communication Layer
• GraphQL Client (/app/graphql)
• Apollo Client Configuration
• Cache Management
• API Integration
c. Authentication & Security
• Biometric Authentication
• PIN/Password Management
• Secure Storage
• TOTP Implementation
d. Core Wallet Features
• Payment Processing
• Transaction Management
• Bitcoin Operations (Lightning/OnChain)
• QR Code Scanning/Generation
Component Relationships
[Mobile UI Layer] ←→ [State Management]
• ↕
[Authentication Layer] ←→ [Secure Storage]
• ↕
[GraphQL Client] ←→ [Cache Layer]
• ↕
[Galoy Backend API]
Specific Implementation Details
Key architectural patterns:
• Component-based architecture (/app/components structure)
• Screen-based navigation (/app/screens organization)
• GraphQL-based data fetching
• Persistent storage management
• Multi-language support
Integration Points
Crucial connections:
• Mobile ←→ Backend Communication
• Payment Processing Flow
• Authentication Flow
• Storage Management
Technical Stack Indicators
Technology badges for:
• React Native
• GraphQL/Apollo
• Bitcoin/Lightning Network
• Secure Storage Solutions
• Testing Framework (Jest/Detox)
External Integration Layer (Galoy Backend)
Remember to maintain a balance between showing enough detail to understand the system architecture while keeping it clean and readable. Focus on the wallet-specific features and their interaction with the Galoy backend infrastructure.