fix: add delay for flash rendering
This commit is contained in:
LFS
BIN
Binary file not shown.
@@ -318,6 +318,9 @@ export default function CameraScreen({
|
||||
try {
|
||||
turnFlashOn();
|
||||
|
||||
// Wait for UI to render the flash before blocking main thread with capture
|
||||
await new Promise(resolve => setTimeout(resolve, 50));
|
||||
|
||||
let capturedUri: string;
|
||||
|
||||
if (Platform.OS === 'android' && isUsbConnected && usbCameraRef.current) {
|
||||
|
||||
Reference in New Issue
Block a user