diff --git a/img/flash-off.png b/img/flash-off.png new file mode 100644 index 000000000..090dd0af5 Binary files /dev/null and b/img/flash-off.png differ diff --git a/img/flash-on.png b/img/flash-on.png new file mode 100644 index 000000000..ed6c46b04 Binary files /dev/null and b/img/flash-on.png differ diff --git a/screen/send/ScanQRCode.js b/screen/send/ScanQRCode.js index 26f352e0f..3b0c2d568 100644 --- a/screen/send/ScanQRCode.js +++ b/screen/send/ScanQRCode.js @@ -344,6 +344,8 @@ const ScanQRCode = () => { ) : isFocused ? ( onBarCodeRead({ data: event?.nativeEvent?.codeStringValue })} showFrame={false} diff --git a/scripts/react-native-camera-kit.patch b/scripts/react-native-camera-kit.patch index 6a7d29aa0..247752459 100644 --- a/scripts/react-native-camera-kit.patch +++ b/scripts/react-native-camera-kit.patch @@ -9,3 +9,38 @@ if (zoomMode == "off") return true val cameraControl = camera?.cameraControl ?: return true val zoom = camera?.cameraInfo?.zoomState?.value?.zoomRatio ?: return true + +--- ../node_modules/react-native-camera-kit/dist/CameraScreen.js 2024-09-01 13:00:57 ++++ ../node_modules/react-native-camera-kit/dist/CameraScreen.js 2024-09-01 13:00:46 +@@ -61,14 +61,14 @@ + )); + } + renderTorchButton() { +- return (!this.isCaptureRetakeMode() && ( this.onSetTorch()}> +- ++ return (!this.isCaptureRetakeMode() && ( this.onSetTorch()}> ++ + )); + } + renderSwitchCameraButton() { + return (this.props.cameraFlipImage && +- !this.isCaptureRetakeMode() && ( this.onSwitchCameraPressed()}> +- ++ !this.isCaptureRetakeMode() && ( this.onSwitchCameraPressed()}> ++ + )); + } + renderTopButtons() { +\ No newline at end of file +@@ -228,8 +228,8 @@ + flex: 1, + flexDirection: 'row', + justifyContent: 'space-between', +- paddingTop: 8, +- paddingBottom: 0, ++ paddingTop:44, ++ paddingHorizontal: 16, + }, + cameraContainer: Object.assign({}, Platform.select({ + android: { +\ No newline at end of file