mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	fix qrcode
This commit is contained in:
		| @@ -37,7 +37,7 @@ function App() { | |||||||
|     updateInfo, |     updateInfo, | ||||||
|     packageVersion, |     packageVersion, | ||||||
|     currentHash, |     currentHash, | ||||||
|     parseTestPayload, |     parseTestQrCode, | ||||||
|     progress: {received, total} = {}, |     progress: {received, total} = {}, | ||||||
|   } = usePushy(); |   } = usePushy(); | ||||||
|   const [useDefaultAlert, setUseDefaultAlert] = useState(true); |   const [useDefaultAlert, setUseDefaultAlert] = useState(true); | ||||||
| @@ -74,7 +74,7 @@ function App() { | |||||||
|             scanBarcode={true} |             scanBarcode={true} | ||||||
|             onReadCode={({nativeEvent: {codeStringValue}}) => { |             onReadCode={({nativeEvent: {codeStringValue}}) => { | ||||||
|               console.log(codeStringValue); |               console.log(codeStringValue); | ||||||
|               parseTestPayload(codeStringValue); |               parseTestQrCode(codeStringValue); | ||||||
|               setShowCamera(false); |               setShowCamera(false); | ||||||
|             }} // optional |             }} // 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 |             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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm