From b08a978701d7447e4a9f48c14d9ff350451750ff Mon Sep 17 00:00:00 2001 From: QQ Date: Sat, 14 Nov 2026 14:20:15 +0800 Subject: [PATCH] Import apps/android/src/ui/animated-ellipsis.tsx --- apps/android/src/ui/animated-ellipsis.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 apps/android/src/ui/animated-ellipsis.tsx diff --git a/apps/android/src/ui/animated-ellipsis.tsx b/apps/android/src/ui/animated-ellipsis.tsx new file mode 100644 index 0000000..65c12fe --- /dev/null +++ b/apps/android/src/ui/animated-ellipsis.tsx @@ -0,0 +1,19 @@ +import { useEffect, useState } from 'react' +import { Text } from 'react-native' + +/** Keep timer updates local to the suffix, rather than rerendering its screen. */ +export function AnimatedEllipsis() { + const [visible, setVisible] = useState(1) + useEffect(() => { + const timer = setInterval(() => setVisible(count => count % 3 + 1), 400) + return () => clearInterval(timer) + }, []) + return ( + + {/* Keep the same glyphs in every frame so centered labels never shift. */} + . + . + . + + ) +}