UI refactor: Admin Screen redesign, Timers, Flash timing, Date overlay

This commit is contained in:
2026-06-12 00:06:12 +02:00
parent d1b7ca36d0
commit 3bed68f728
6 changed files with 282 additions and 205 deletions
+7 -6
View File
@@ -111,10 +111,11 @@ export default function CameraScreen({
useEffect(() => {
if (countdown !== null) {
scale.value = 0.5;
scale.value = withSpring(1.25, { damping: 10, stiffness: 120 }, () => {
scale.value = withTiming(1.0, { duration: 150 });
});
scale.value = 1;
scale.value = withSequence(
withTiming(1.5, { duration: 100 }),
withSpring(1, { damping: 10, stiffness: 100 })
);
}
}, [countdown]);
@@ -133,7 +134,7 @@ export default function CameraScreen({
// Turn off white flash effect
const turnFlashOff = useCallback(() => {
flashOpacity.value = withTiming(0, { duration: 400 });
flashOpacity.value = withTiming(0, { duration: 800 });
}, []);
// 1. Request built-in camera permission on mount (just in case we fallback)
@@ -319,7 +320,7 @@ export default function CameraScreen({
turnFlashOn();
// Wait for UI to render the flash before blocking main thread with capture
await new Promise(resolve => setTimeout(resolve, 50));
await new Promise(resolve => setTimeout(resolve, 150));
let capturedUri: string;