diff --git a/apps/mobile/src/app/menu/qr.tsx b/apps/mobile/src/app/menu/qr.tsx index e52bf33..9c480cf 100644 --- a/apps/mobile/src/app/menu/qr.tsx +++ b/apps/mobile/src/app/menu/qr.tsx @@ -47,17 +47,22 @@ export default function QrScreen() { // Inject the live QR code image directly into the SVG's #qr-placeholder group // SVG içeriğine başka hiçbir şey dokunulmaz, sadece #qr-placeholder replace edilir function buildSvgWithQr(svgRaw: string, pngBase64: string): string { + // react-native-svg XML parser desteklemez, parse hatası verir + const withoutComments = svgRaw.replace(//g, ""); + const qrImgTag = ` `; - return svgRaw.replace( + + return withoutComments.replace( //, qrImgTag ); } + useEffect(() => { (async () => { const activeRest = await getActiveRestaurant();