ADD: Camera flip image (useful for tablets)

This commit is contained in:
Marcos Rodriguez Velez 2024-08-21 21:32:49 -04:00
parent 8f13d077fb
commit f01763c2f9
4 changed files with 7 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 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,13 @@ 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
torchOffImage={require('../../img/flash-off.png')}
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')} />