A React Native mobile wallet application for the Palestine Monetary Authority (PMA) that provides secure, non-custodial cryptocurrency transactions.
- Non-custodial wallet: Your private keys remain secure on your device
- Multi-currency support: USDT, USDC, and AE Coin
- QR code payments: Send and receive payments by scanning QR codes
- Blockchain integration: Secure transactions on Ethereum network
- Bank transfer top-up: Support for stablecoin deposits
- Comprehensive signup process with required fields:
- Name (First, Middle, Last)
- Date of Birth
- Address (Street, City, State: West Bank/Gaza)
- Mobile Number
- Email Address
- Wallet ID assignment on blockchain
- Secure user authentication
- Real-time balance display
- Transaction history
- Send/receive functionality
- QR code scanning for payments
- Secure private key storage
- Framework: React Native with Expo
- Navigation: React Navigation
- Blockchain: Ethereum with ethers.js
- Storage: Expo SecureStore for sensitive data
- UI: React Native Paper with custom PMA theme
- State Management: React Context API
- Authentication: Local secure storage
PMA-Wallet/
├── App.tsx # Main application entry point
├── package.json # Dependencies and scripts
├── src/
│ ├── components/ # Reusable UI components
│ ├── contexts/ # React Context providers
│ │ ├── AuthContext.tsx # User authentication state
│ │ └── WalletContext.tsx # Wallet state management
│ ├── navigation/ # Navigation configuration
│ │ └── MainNavigator.tsx # Bottom tab navigation
│ ├── screens/ # Application screens
│ │ ├── SplashScreen.tsx # Loading screen
│ │ ├── OnboardingScreen.tsx # Feature introduction
│ │ ├── SignupScreen.tsx # User registration
│ │ ├── HomeScreen.tsx # Main wallet dashboard
│ │ ├── SendScreen.tsx # Send funds
│ │ ├── ReceiveScreen.tsx # Receive funds
│ │ ├── ScanScreen.tsx # QR code scanner
│ │ ├── TransactionsScreen.tsx # Transaction history
│ │ └── SettingsScreen.tsx # App settings
│ ├── services/ # Business logic services
│ │ ├── WalletService.ts # Wallet utilities
│ │ └── BlockchainService.ts # Blockchain operations
│ ├── types/ # TypeScript type definitions
│ │ └── index.ts # Common types
│ └── theme.ts # UI theme configuration
└── assets/ # Static assets
-
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Expo CLI
- React Native development environment
-
Install dependencies
npm install
-
Configure environment
- Update
ETHEREUM_RPC_URLinsrc/services/BlockchainService.ts - Add your Infura project ID or other RPC provider
- Configure stablecoin contract addresses
- Update
-
Run the application
# Start Expo development server npm start # Run on Android npm run android # Run on iOS npm run ios
Update the contract addresses in src/services/BlockchainService.ts:
- USDT: Tether USD contract address
- USDC: USD Coin contract address
- AE Coin: AE Coin contract address (placeholder)
The app uses PMA's gold color scheme defined in src/theme.ts:
- Primary: #DAA520 (Gold)
- Accent: #B8860B (Dark Gold)
- Background: #FAFAFA (Light Gray)
- Non-custodial: Private keys never leave the device
- Secure Storage: Sensitive data encrypted with Expo SecureStore
- Mnemonic Backup: BIP39 mnemonic phrase generation
- Address Validation: Ethereum address validation
- Transaction Signing: Local transaction signing
- Launch the app
- Complete the onboarding flow
- Fill in the signup form with required information
- Wallet is automatically created and blockchain ID assigned
- Navigate to Send tab
- Enter recipient address or scan QR code
- Select currency (USDT/USDC/AE Coin)
- Enter amount and confirm transaction
- Navigate to Receive tab
- Share your wallet address or QR code
- Monitor incoming transactions
- Use supported bank transfer methods
- Only stablecoins (USDT, USDC, AE Coin) are supported
- Funds will reflect in wallet balance
- Create new screens in
src/screens/ - Add navigation routes in
src/navigation/MainNavigator.tsx - Update types in
src/types/index.ts - Add services in
src/services/
- Test on both Android and iOS devices
- Verify blockchain integration on testnet first
- Test all user flows and edge cases
- Build APK:
expo build:android - Generate signed AAB for Play Store
- Upload to Google Play Console
- Build IPA:
expo build:ios - Upload to App Store Connect
- Submit for review
For technical support or questions about the PMA Wallet:
- Email: support@pma.ps
- Phone: +970-2-240-6000
- Website: https://www.pma.ps
Copyright © 2024 Palestine Monetary Authority. All rights reserved.
This software is proprietary and confidential to the Palestine Monetary Authority.