Merge pull request #7638 from BlueWallet/fix-request-camera-permish

FIX: request camera permission
This commit is contained in:
GLaDOS 2025-02-25 16:31:30 +00:00 committed by GitHub
commit f83476428e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,8 @@ const requestCameraAuthorization = () => {
return request(Platform.OS === 'android' ? PERMISSIONS.ANDROID.CAMERA : PERMISSIONS.IOS.CAMERA);
};
const scanQrHelper = (): Promise<string> => {
const scanQrHelper = async (): Promise<string> => {
await requestCameraAuthorization();
return new Promise(resolve => {
if (navigationRef.isReady()) {
navigationRef.current?.navigate('ScanQRCode', {