mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
FIX: request camera permission
This commit is contained in:
parent
b7e03c1ed1
commit
7963083237
1 changed files with 2 additions and 1 deletions
|
@ -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', {
|
||||
|
|
Loading…
Add table
Reference in a new issue