Skip to content

Commit

Permalink
fix qrcode
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Jul 28, 2024
1 parent adcd57b commit 31ee269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Example/testHotUpdate/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function App() {
updateInfo,
packageVersion,
currentHash,
parseTestPayload,
parseTestQrCode,
progress: {received, total} = {},
} = usePushy();
const [useDefaultAlert, setUseDefaultAlert] = useState(true);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 31ee269

Please sign in to comment.