diff --git a/components/Player.tsx b/components/Player.tsx index 111bda4..e8ba561 100644 --- a/components/Player.tsx +++ b/components/Player.tsx @@ -301,87 +301,6 @@ export default function Player() { ); } - {fmt(progress)} - {fmt(duration)} - - - - {/* Controls */} - - { Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light); toggleShuffle(); }} active={shuffle}> - - - - - - - - - { Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium); togglePlay(); }}> - {playing - ? - : } - - - - - - - - { Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light); cycleRepeat(); }} active={repeat > 0}> - - - - - {/* Lyrics button */} - - - - - - - {lyricsLoading ? 'Загрузка…' : 'Текст'} - - - - - - - - {/* Lyrics sheet */} - {lyricsOpen && ( - - setLyricsOpen(false)} /> - - setLyricsOpen(false)} style={s.lyrHandleBar}> - - - - {cover - ? - : } - - {track.title} - {track.artist} - - - - {lrcLines.length > 0 - ? lrcLines.map((line, i) => ( - { lineHeights.current[i] = e.nativeEvent.layout.height; }}> - {line.text} - - )) - : plainLyrics - ? {plainLyrics} - : Текст не найден} - - - - )} - - ); -} function CtlBtn({ onPress, active = false, children }: { onPress: () => void; active?: boolean; children: React.ReactNode }) { const sc = useSharedValue(1);