diff --git a/apps/mobile/app/(app)/_layout.tsx b/apps/mobile/app/(app)/_layout.tsx index 5efd2ff..67f37f7 100644 --- a/apps/mobile/app/(app)/_layout.tsx +++ b/apps/mobile/app/(app)/_layout.tsx @@ -79,10 +79,9 @@ export default function AppLayout() { name="player" options={{ headerShown: false, - presentation: - Platform.OS === "ios" - ? "transparentModal" - : "fullScreenModal", + // Keep the library visible behind the custom swipe animation. + presentation: "transparentModal", + contentStyle: { backgroundColor: "transparent" }, animation: "slide_from_bottom", gestureEnabled: true, gestureDirection: "vertical", diff --git a/apps/mobile/app/(app)/player.tsx b/apps/mobile/app/(app)/player.tsx index fac62e7..f953e2c 100644 --- a/apps/mobile/app/(app)/player.tsx +++ b/apps/mobile/app/(app)/player.tsx @@ -91,6 +91,7 @@ export default function PlayerScreen() { } = usePlayback() const { volume, setVolume, available: volumeAvailable } = useSystemVolume() const [showQueue, setShowQueue] = useState(false) + const [isDismissing, setIsDismissing] = useState(false) const [stageHeight, setStageHeight] = useState(0) const [scrubTime, setScrubTime] = useState(null) const user = useCachedQuery(api.auth.currentUser) @@ -162,6 +163,7 @@ export default function PlayerScreen() { event.translationY > DISMISS_DISTANCE || event.velocityY > DISMISS_VELOCITY ) { + scheduleOnRN(setIsDismissing, true) dismissY.value = withTiming( windowHeight, { duration: 220 }, @@ -221,7 +223,11 @@ export default function PlayerScreen() { {Platform.OS === "android" ? ( <>