imprv CoverArt perf and interface

This commit is contained in:
austinried
2021-07-18 16:35:02 +09:00
parent 62b27974a7
commit e6c76776a3
9 changed files with 96 additions and 86 deletions

View File

@@ -25,7 +25,7 @@ const AlbumItem = React.memo<{
<PressableOpacity
style={[styles.item, { maxWidth: size, height }]}
onPress={() => navigation.navigate('AlbumView', { id, title: name })}>
<CoverArt coverArtUri={coverArtUri} height={size} width={size} />
<CoverArt coverArtUri={coverArtUri} style={{ height: size, width: size }} />
<View style={styles.itemDetails}>
<Text style={styles.title} numberOfLines={1}>
{name}