From 31ee269717f39ce80b10dc18017125a12152a195 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Sun, 28 Jul 2024 22:20:33 +0800 Subject: [PATCH] fix qrcode --- Example/testHotUpdate/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Example/testHotUpdate/src/index.tsx b/Example/testHotUpdate/src/index.tsx index 983f962..2081fc3 100644 --- a/Example/testHotUpdate/src/index.tsx +++ b/Example/testHotUpdate/src/index.tsx @@ -37,7 +37,7 @@ function App() { updateInfo, packageVersion, currentHash, - parseTestPayload, + parseTestQrCode, progress: {received, total} = {}, } = usePushy(); const [useDefaultAlert, setUseDefaultAlert] = useState(true); @@ -74,7 +74,7 @@ function App() { scanBarcode={true} onReadCode={({nativeEvent: {codeStringValue}}) => { console.log(codeStringValue); - parseTestPayload(codeStringValue); + parseTestQrCode(codeStringValue); setShowCamera(false); }} // optional showFrame={true} // (default false) optional, show frame with transparent layer (qr code or barcode will be read on this area ONLY), start animation for scanner, that stops when a code has been found. Frame always at center of the screen