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