UI refactor: Admin Screen redesign, Timers, Flash timing, Date overlay
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user