Add deep debugging logs to PreviewScreen to trace fatal crashes during render/image load
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user