diff --git a/ts/features/barcode/screens/BarcodeScanScreen.tsx b/ts/features/barcode/screens/BarcodeScanScreen.tsx index 2117641b07c..b5d54f90311 100644 --- a/ts/features/barcode/screens/BarcodeScanScreen.tsx +++ b/ts/features/barcode/screens/BarcodeScanScreen.tsx @@ -39,6 +39,7 @@ import { import { BarcodeFailure } from "../types/failure"; import { getIOBarcodesByType } from "../utils/getBarcodesByType"; import { WalletBarcodeRoutes } from "../../walletV3/barcode/navigation/routes"; +import { useHardwareBackButton } from "../../../hooks/useHardwareBackButton"; const BarcodeScanScreen = () => { const navigation = useNavigation>(); @@ -46,6 +47,11 @@ const BarcodeScanScreen = () => { const openDeepLink = useOpenDeepLink(); const isIdPayEnabled = useIOSelector(isIdPayEnabledSelector); + useHardwareBackButton(() => { + navigation.goBack(); + return true; + }); + const { dataMatrixPosteEnabled } = useIOSelector( barcodesScannerConfigSelector );