feat(mobile): implement QR code scanner for wallet addresses

- Add expo-camera package for QR scanning
- Create QRScannerModal component with camera permission handling
- Integrate scanner into WalletScreen scan button
- Support substrate: and pezkuwi: URI formats with amount parameter
- Add address validation before opening send modal
- Configure camera permissions for iOS and Android in app.json
This commit is contained in:
2026-01-15 10:59:39 +03:00
parent 01862117dd
commit 8650ea9255
4 changed files with 510 additions and 4 deletions
+14 -2
View File
@@ -13,7 +13,10 @@
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
"supportsTablet": true,
"infoPlist": {
"NSCameraUsageDescription": "Pezkuwi needs camera access to scan QR codes for wallet addresses and payments."
}
},
"android": {
"package": "io.pezkuwichain.wallet",
@@ -22,8 +25,17 @@
"backgroundColor": "#ffffff"
},
"edgeToEdgeEnabled": true,
"predictiveBackGestureEnabled": false
"predictiveBackGestureEnabled": false,
"permissions": ["android.permission.CAMERA"]
},
"plugins": [
[
"expo-camera",
{
"cameraPermission": "Pezkuwi needs camera access to scan QR codes for wallet addresses and payments."
}
]
],
"web": {
"favicon": "./assets/favicon.png"
}