feat: set audio player cover img aspect ratio 1:1

This commit is contained in:
Khairul Hidayat 2024-03-24 02:32:38 +07:00
parent 2b29ceacd0
commit 254df638c1
3 changed files with 9 additions and 7 deletions

View File

@ -32,6 +32,6 @@
</noscript>
<!-- The root element for your Expo app. -->
<div id="root"></div>
<script src="/_expo/static/js/web/entry-760635eccec4013459b293d488349451.js" defer></script>
<script src="/_expo/static/js/web/entry-9340d9b06450719c5ea70c9e7acab050.js" defer></script>
</body>
</html>

View File

@ -60,11 +60,13 @@ const AudioPlayerView = React.memo(({ onClose }: { onClose: () => void }) => {
<Box className="flex flex-col items-center justify-center p-8 flex-1 overflow-hidden">
{mediaTags?.picture ? (
<Box className="aspect-square flex-1 max-h-[400px] mb-8">
<Image
source={{ uri: mediaTags.picture }}
style={cn("w-full flex-1 max-h-[256px] mb-8")}
resizeMode="contain"
style={cn("w-full h-full")}
resizeMode="cover"
/>
</Box>
) : null}
<Text className="text-white text-lg sm:text-xl">Now Playing</Text>