Add deep debugging logs to PreviewScreen to trace fatal crashes during render/image load

This commit is contained in:
2026-05-31 20:46:06 +02:00
parent 63df4ae4f0
commit 858674c9d4
2 changed files with 33 additions and 4 deletions
+3 -1
View File
@@ -10,7 +10,8 @@ import {
TouchableWithoutFeedback,
} from 'react-native';
import { CameraView, useCameraPermissions } from 'expo-camera';
import { File, Paths } from 'expo-file-system';
import * as FileSystem from 'expo-file-system';
import { File, Paths } from 'expo-file-system/next';
import * as ImageManipulator from 'expo-image-manipulator';
import { LinearGradient } from 'expo-linear-gradient';
import Animated, {
@@ -282,6 +283,7 @@ export default function CameraScreen({
capturedUri = path;
} else {
// Fallback Camera Capture
logger.log(`Capturing from built-in camera fallback. Size constraint: ${pictureSize || 'default'}`);
console.log('Capturing from built-in camera fallback...');
if (expoCameraRef.current) {
const photo = await expoCameraRef.current.takePictureAsync({