Merge pull request #6958 from BlueWallet/cameraflip

ADD: Camera flip image (useful for tablets)
This commit is contained in:
GLaDOS 2024-08-29 12:50:48 +00:00 committed by GitHub
commit b73cfe8e5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -342,7 +342,12 @@ const ScanQRCode = () => {
<Button title={loc.send.open_settings} onPress={openPrivacyDesktopSettings} />
</View>
) : isFocused ? (
<CameraScreen scanBarcode onReadCode={event => onBarCodeRead({ data: event?.nativeEvent?.codeStringValue })} showFrame={false} />
<CameraScreen
scanBarcode
cameraFlipImage={require('../../img/camera-rotate-solid.png')}
onReadCode={event => onBarCodeRead({ data: event?.nativeEvent?.codeStringValue })}
showFrame={false}
/>
) : null}
<TouchableOpacity accessibilityRole="button" accessibilityLabel={loc._.close} style={styles.closeTouch} onPress={dismiss}>
<Image style={styles.closeImage} source={require('../../img/close-white.png')} />