2020-06-16 17:51:51 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
import MediaControls from './components/MediaControls';
|
|
|
|
|
import ProgressBar from './components/ProgressBar';
|
|
|
|
|
import NowPlaying from './components/NowPlaying';
|
|
|
|
|
import Queue from './components/Queue';
|
2022-01-02 22:50:49 +01:00
|
|
|
import ConnectionNotice from './components/ConnectionNotice';
|
2022-05-05 22:54:37 +02:00
|
|
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
2022-05-10 23:52:58 +02:00
|
|
|
import StreamStatus from './components/StreamStatus';
|
2024-07-25 20:07:23 +09:00
|
|
|
import {Platform} from 'react-native';
|
2022-06-09 23:37:07 +02:00
|
|
|
import BackButton from './components/Backbutton';
|
2023-08-01 01:00:16 +03:00
|
|
|
import Timer from './components/Timer';
|
2024-07-25 20:07:23 +09:00
|
|
|
import styled from 'styled-components/native';
|
|
|
|
|
import { ColoredBlurView } from '@/components/Colors.tsx';
|
|
|
|
|
import LyricsPreview from './components/LyricsPreview.tsx';
|
2020-06-16 17:51:51 +02:00
|
|
|
|
2024-07-25 20:07:23 +09:00
|
|
|
const Group = styled.View`
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export default function Player() {
|
2020-06-16 17:51:51 +02:00
|
|
|
return (
|
2022-05-05 22:59:32 +02:00
|
|
|
<GestureHandlerRootView style={{ flex: 1 }}>
|
2024-07-25 20:07:23 +09:00
|
|
|
<ColoredBlurView>
|
|
|
|
|
{Platform.OS === 'android' && (<BackButton />)}
|
|
|
|
|
<Queue header={(
|
|
|
|
|
<>
|
|
|
|
|
<NowPlaying />
|
|
|
|
|
<ConnectionNotice />
|
|
|
|
|
<StreamStatus />
|
|
|
|
|
<ProgressBar />
|
|
|
|
|
<MediaControls />
|
|
|
|
|
<Group>
|
|
|
|
|
<Timer />
|
|
|
|
|
</Group>
|
|
|
|
|
<LyricsPreview />
|
|
|
|
|
</>
|
|
|
|
|
)} />
|
|
|
|
|
</ColoredBlurView>
|
2022-05-05 22:54:37 +02:00
|
|
|
</GestureHandlerRootView>
|
2020-06-16 17:51:51 +02:00
|
|
|
);
|
2024-07-25 20:07:23 +09:00
|
|
|
}
|