How zingolabs/zingo-mobile works
Key Components
a) Frontend Layer:
• React Native UI Components (from /components directory)
• Wallet Interface (Send, Receive, History)
• Settings & Configuration
• Address Book
• Transaction Management
• QR Scanner Integration
b) State Management & Business Logic:
• AppState Management (/app/AppState)
• Context Providers
• State Controllers
• Wallet Settings
• RPC Module Interface (/app/RPCModule)
• Transaction Processing
• Wallet Operations
• Blockchain Interaction
c) Native Bridges:
• iOS Bridge (Swift)
• RPCModule.swift
• Native iOS Components
• Android Bridge (Kotlin)
• RPCModule.kt
• BackgroundSyncWorker.kt
d) Rust Core Layer:
• Zingolib Integration (/rust)
• Wallet Operations
• Cryptographic Functions
• Blockchain Interaction
e) External Services:
• LightwalletD Server Connection
• Price Fetching Services
• Blockchain Network (Zcash)
Connection Flows
• User Interface → State Management
• State Management → RPC Module
• RPC Module → Native Bridges
• Native Bridges → Rust Core
• Rust Core → External Services
Technical Details to Note
Annotations for:
• Communication Protocols
• Security Measures
• Data Flow Directions
• State Management Patterns
• Error Handling Routes