FIX: request camera permission

This commit is contained in:
overtorment 2025-02-25 15:24:43 +00:00
parent b7e03c1ed1
commit 7963083237

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', {