diff --git a/.changeset/nine-toes-worry.md b/.changeset/nine-toes-worry.md new file mode 100644 index 000000000000..93dd9687a390 --- /dev/null +++ b/.changeset/nine-toes-worry.md @@ -0,0 +1,5 @@ +--- +"live-mobile": minor +--- + +Fix camera rendering right after granting access diff --git a/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx b/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx index 2d876f2da499..7f05c6212de4 100644 --- a/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx +++ b/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx @@ -6,6 +6,7 @@ import BottomContainer from "./BottomContainer"; import { CameraView, BarcodeScanningResult } from "expo-camera"; import ScanTargetSvg from "./ScanTargetSvg"; import RequiresCameraPermissions from "~/components/RequiresCameraPermissions"; +import CameraPermissionContext from "~/components/RequiresCameraPermissions/CameraPermissionContext"; type Props = { onQrCodeScanned: (data: string) => void; @@ -72,17 +73,22 @@ const ScanQrCode = ({ onQrCodeScanned }: Props) => { justifyContent={"center"} alignItems={"center"} > - + + {({ permissionGranted }) => ( + + )} +