From 2d3e8231198fd395a58788c02e998a79d4326e51 Mon Sep 17 00:00:00 2001 From: l2uler <335852737+CodePhrex@users.noreply.github.com> Date: Sun, 25 Oct 2026 15:48:46 -0700 Subject: [PATCH 1/3] Add animated Droid Commander launch screen --- components/animated-launch-screen.tsx | 240 ++++++++++++++++++++++++++ 1 file changed, 240 insertions(+) create mode 100644 components/animated-launch-screen.tsx diff --git a/components/animated-launch-screen.tsx b/components/animated-launch-screen.tsx new file mode 100644 index 0000000..2ba69e4 --- /dev/null +++ b/components/animated-launch-screen.tsx @@ -0,0 +1,240 @@ +import { useEffect, useRef, useState } from "react"; +import { + Animated, + Easing, + StyleSheet, + Text, + View, +} from "react-native"; + +import { design } from "@/constants/design-system"; + +/** + * Lightweight in-app launch animation shown after the native Android splash. + * Uses React Native Animated only; no additional dependency is required. + */ +export function AnimatedLaunchScreen() { + const [visible, setVisible] = useState(true); + const fade = useRef(new Animated.Value(1)).current; + const scale = useRef(new Animated.Value(0.82)).current; + const ring = useRef(new Animated.Value(0.35)).current; + const progress = useRef(new Animated.Value(0)).current; + + useEffect(() => { + const pulse = Animated.loop( + Animated.sequence([ + Animated.timing(ring, { + toValue: 1, + duration: 650, + easing: Easing.out(Easing.quad), + useNativeDriver: true, + }), + Animated.timing(ring, { + toValue: 0.35, + duration: 650, + easing: Easing.inOut(Easing.quad), + useNativeDriver: true, + }), + ]), + ); + + Animated.parallel([ + Animated.spring(scale, { + toValue: 1, + damping: 12, + stiffness: 150, + mass: 0.7, + useNativeDriver: true, + }), + Animated.timing(progress, { + toValue: 1, + duration: 1650, + easing: Easing.out(Easing.cubic), + useNativeDriver: false, + }), + ]).start(); + + pulse.start(); + + const finish = setTimeout(() => { + pulse.stop(); + Animated.timing(fade, { + toValue: 0, + duration: 260, + easing: Easing.out(Easing.quad), + useNativeDriver: true, + }).start(({ finished }) => { + if (finished) setVisible(false); + }); + }, 1850); + + return () => { + clearTimeout(finish); + pulse.stop(); + }; + }, [fade, progress, ring, scale]); + + if (!visible) return null; + + const progressWidth = progress.interpolate({ + inputRange: [0, 1], + outputRange: ["0%", "100%"], + }); + + return ( + + + + + + + DC + + + DROID COMMANDER + DEVICE CONTROL / DIAGNOSTICS + + + + INITIALIZING SECURE WORKSPACE + + + + COMMAND CENTER + + + ); +} + +const styles = StyleSheet.create({ + overlay: { + ...StyleSheet.absoluteFillObject, + zIndex: 9999, + elevation: 9999, + backgroundColor: design.color.navy, + alignItems: "center", + justifyContent: "space-between", + paddingHorizontal: 28, + paddingTop: 72, + paddingBottom: 38, + }, + topLine: { + position: "absolute", + top: 0, + left: 0, + right: 0, + height: 5, + backgroundColor: design.color.orange, + }, + center: { + flex: 1, + alignItems: "center", + justifyContent: "center", + width: "100%", + }, + markStage: { + width: 124, + height: 124, + alignItems: "center", + justifyContent: "center", + marginBottom: 30, + }, + ring: { + position: "absolute", + width: 98, + height: 98, + borderRadius: 28, + borderWidth: 2, + borderColor: design.color.orange, + }, + mark: { + width: 82, + height: 82, + borderRadius: 23, + backgroundColor: design.color.orange, + alignItems: "center", + justifyContent: "center", + borderWidth: 1, + borderColor: "#FFBE83", + }, + markText: { + color: "#FFFFFF", + fontSize: 29, + fontWeight: "900", + letterSpacing: -1.5, + }, + title: { + color: "#FFFFFF", + fontSize: 20, + fontWeight: "900", + letterSpacing: 2.1, + textAlign: "center", + }, + subtitle: { + marginTop: 10, + color: "#B9C6D2", + fontSize: 9, + fontWeight: "800", + letterSpacing: 1.6, + textAlign: "center", + }, + progressTrack: { + width: 164, + height: 4, + borderRadius: 999, + backgroundColor: "#33485D", + overflow: "hidden", + marginTop: 36, + }, + progressFill: { + height: "100%", + backgroundColor: design.color.orange, + borderRadius: 999, + }, + status: { + marginTop: 13, + color: "#AAB8C5", + fontSize: 9, + fontWeight: "700", + letterSpacing: 1.15, + }, + footer: { + flexDirection: "row", + alignItems: "center", + gap: 8, + }, + statusDot: { + width: 7, + height: 7, + borderRadius: 4, + backgroundColor: design.color.orange, + }, + footerText: { + color: "#B9C6D2", + fontSize: 10, + fontWeight: "800", + letterSpacing: 1.8, + }, +}); From e00805a20c22198e0e86d153df99c8e13caf38be Mon Sep 17 00:00:00 2001 From: l2uler <335852737+CodePhrex@users.noreply.github.com> Date: Sun, 25 Oct 2026 15:48:53 -0700 Subject: [PATCH 2/3] Show animated launch screen on app startup --- app/_layout.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/_layout.tsx b/app/_layout.tsx index 3aaab54..1cff7cb 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -9,6 +9,7 @@ import { Platform } from "react-native"; import * as SplashScreen from "expo-splash-screen"; import "@/lib/_core/nativewind-pressable"; import { ThemeProvider } from "@/lib/theme-provider"; +import { AnimatedLaunchScreen } from "@/components/animated-launch-screen"; import { SafeAreaFrameContext, SafeAreaInsetsContext, @@ -93,6 +94,7 @@ export default function RootLayout() { + From 7b046ad53324f31464616ac49518a89291e728f8 Mon Sep 17 00:00:00 2001 From: l2uler <335852737+CodePhrex@users.noreply.github.com> Date: Sun, 25 Oct 2026 16:11:58 -0700 Subject: [PATCH 3/3] Make animated launch screen more visible --- components/animated-launch-screen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/animated-launch-screen.tsx b/components/animated-launch-screen.tsx index 2ba69e4..ea3328d 100644 --- a/components/animated-launch-screen.tsx +++ b/components/animated-launch-screen.tsx @@ -48,7 +48,7 @@ export function AnimatedLaunchScreen() { }), Animated.timing(progress, { toValue: 1, - duration: 1650, + duration: 2700, easing: Easing.out(Easing.cubic), useNativeDriver: false, }), @@ -66,7 +66,7 @@ export function AnimatedLaunchScreen() { }).start(({ finished }) => { if (finished) setVisible(false); }); - }, 1850); + }, 3200); return () => { clearTimeout(finish);