2020-06-16 17:51:51 +02:00
|
|
|
import React from 'react';
|
2020-07-26 14:45:32 +02:00
|
|
|
import { DynamicColorIOS, StyleSheet, ScrollView, Platform, PlatformColor } from 'react-native';
|
2020-06-16 17:51:51 +02:00
|
|
|
import MediaControls from './components/MediaControls';
|
|
|
|
|
import ProgressBar from './components/ProgressBar';
|
|
|
|
|
import NowPlaying from './components/NowPlaying';
|
|
|
|
|
import Queue from './components/Queue';
|
|
|
|
|
|
2020-07-26 14:45:32 +02:00
|
|
|
const styles = StyleSheet.create({
|
|
|
|
|
outer: {
|
|
|
|
|
...Platform.select({
|
|
|
|
|
ios: {
|
|
|
|
|
color: PlatformColor('label'),
|
|
|
|
|
backgroundColor: PlatformColor('systemBackground'),
|
|
|
|
|
},
|
|
|
|
|
android: {
|
|
|
|
|
color: PlatformColor('?android:attr/textColorPrimary'),
|
|
|
|
|
backgroundColor: PlatformColor('?android:attr/backgroundTint'),
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
inner: {
|
|
|
|
|
padding: 25,
|
|
|
|
|
}
|
|
|
|
|
});
|
2020-07-26 12:34:00 +02:00
|
|
|
|
2020-06-16 17:51:51 +02:00
|
|
|
export default function Player() {
|
|
|
|
|
return (
|
2020-07-26 14:45:32 +02:00
|
|
|
<ScrollView contentContainerStyle={styles.inner} style={styles.outer}>
|
2020-06-16 17:51:51 +02:00
|
|
|
<NowPlaying />
|
|
|
|
|
<MediaControls />
|
|
|
|
|
<ProgressBar />
|
|
|
|
|
<Queue />
|
2020-07-26 14:45:32 +02:00
|
|
|
</ScrollView>
|
2020-06-16 17:51:51 +02:00
|
|
|
);
|
|
|
|
|
}
|