From abe02174e1adb591d0cc951fc2c345a4a1553e23 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 19 Jun 2024 15:43:57 +0000 Subject: [PATCH] render a nice looking qr code for the payment --- src/screens/WaveQrCodePaymentScreen.tsx | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/src/screens/WaveQrCodePaymentScreen.tsx b/src/screens/WaveQrCodePaymentScreen.tsx index cabc962..1081501 100644 --- a/src/screens/WaveQrCodePaymentScreen.tsx +++ b/src/screens/WaveQrCodePaymentScreen.tsx @@ -3,6 +3,9 @@ import BackgroundWithBeasyIconAndWhiteContentArea from "@components/backgrounds/ import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; import { LOG } from "@logger"; +import { Dimensions } from "react-native"; +// biome-ignore lint/style/useNamingConvention: +import QRCode from "react-native-qrcode-svg"; const log = LOG.extend("WaveQrCodePaymentScreen"); @@ -10,6 +13,11 @@ const WaveQrCodePaymentScreen: MainStackScreenComponentProps<"waveQrCodePaymentS route, navigation, }) => { + const paymentUrl = route.params?.paymentUrl ?? ""; + console.log("paymentUrl", paymentUrl); + const windowWidth = Dimensions.get("window").width; + // const sixtyPercentHeight = window * 0.5; + return ( - WaveQrCodePaymentScreen + + Votre QR Code + + + + + + Veuillez scanner le QR Code pour terminer le paiement ); -- libgit2 0.27.1