mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-22 01:28:28 -05:00
memoize player artwork
This commit is contained in:
@@ -103,14 +103,20 @@ export default function PlayerScreen({
|
||||
justifyContent="center"
|
||||
alignContent="center"
|
||||
minHeight={width / 1.1}
|
||||
onPress={() => {
|
||||
useTogglePlayback.mutate(undefined)
|
||||
}}
|
||||
// onPress={() => {
|
||||
// useTogglePlayback.mutate(undefined)
|
||||
// }}
|
||||
>
|
||||
<BlurhashedImage
|
||||
item={nowPlaying!.item}
|
||||
width={width / 1.1}
|
||||
{ useMemo(() => {
|
||||
return (
|
||||
<BlurhashedImage
|
||||
item={nowPlaying!.item}
|
||||
width={width / 1.1}
|
||||
/>
|
||||
)
|
||||
}, [
|
||||
nowPlaying
|
||||
])}
|
||||
</XStack>
|
||||
|
||||
<XStack marginHorizontal={20} paddingVertical={5}>
|
||||
|
||||
Reference in New Issue
Block a user