From d4ea8debfa36e145124607bf16dba7fa878500e8 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Tue, 6 Jan 2026 19:15:17 +0100 Subject: [PATCH] feat: marquee for music title in modal --- app/(auth)/now-playing.tsx | 36 ++++++++++++++++++++++++++++++++---- bun.lock | 3 +++ package.json | 1 + 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/app/(auth)/now-playing.tsx b/app/(auth)/now-playing.tsx index 22b355f7..42e51dc2 100644 --- a/app/(auth)/now-playing.tsx +++ b/app/(auth)/now-playing.tsx @@ -31,6 +31,7 @@ import DraggableFlatList, { import { CastButton, CastState } from "react-native-google-cast"; import { useSharedValue } from "react-native-reanimated"; import { useSafeAreaInsets } from "react-native-safe-area-context"; +import TextTicker from "react-native-text-ticker"; import type { VolumeResult } from "react-native-volume-manager"; import { Badge } from "@/components/Badge"; import { Text } from "@/components/common/Text"; @@ -482,12 +483,39 @@ const PlayerView: React.FC = ({ - + t} + > {currentTrack.Name} - - + + t} + > {currentTrack.Artists?.join(", ") || currentTrack.AlbumArtist} - + = 18.2.0", "react-native": "*", "react-native-pager-view": ">= 6.0.0" } }, "sha512-TUbh7Yr0tE/99t1pJQLbQ+4/Px67xkT7/r3AhfV+93Q3WoUira0Lx7yuKUP2C118doqxub8NCLERwcqsHr29nQ=="], + "react-native-text-ticker": ["react-native-text-ticker@1.15.0", "", {}, "sha512-d/uK+PIOhsYMy1r8h825iq/nADiHsabz3WMbRJSnkpQYn+K9aykUAXRRhu8ZbTAzk4CgnUWajJEFxS5ZDygsdg=="], + "react-native-track-player": ["react-native-track-player@github:lovegaoshi/react-native-track-player#003afd0", { "peerDependencies": { "react": "*", "react-native": "*", "react-native-windows": "*", "shaka-player": "^4.7.9" }, "optionalPeers": ["react-native-windows", "shaka-player"] }, "lovegaoshi-react-native-track-player-003afd0"], "react-native-udp": ["react-native-udp@4.1.7", "", { "dependencies": { "buffer": "^5.6.0", "events": "^3.1.0" } }, "sha512-NUE3zewu61NCdSsLlj+l0ad6qojcVEZPT4hVG/x6DU9U4iCzwtfZSASh9vm7teAcVzLkdD+cO3411LHshAi/wA=="], diff --git a/package.json b/package.json index fa263961..535360c7 100644 --- a/package.json +++ b/package.json @@ -98,6 +98,7 @@ "react-native-safe-area-context": "~5.6.0", "react-native-screens": "~4.18.0", "react-native-svg": "15.12.1", + "react-native-text-ticker": "^1.15.0", "react-native-track-player": "github:lovegaoshi/react-native-track-player#APM", "react-native-udp": "^4.1.7", "react-native-url-polyfill": "^2.0.0",