You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
598 B
28 lines
598 B
import React from "react";
|
|
import {FlatList, ScrollView, StyleSheet, View} from "react-native";
|
|
import AlbumCard from "./AlbumCard";
|
|
|
|
const ArtistList = ({ALBUM_LIST}) => {
|
|
return (
|
|
<View style={styles.container}>
|
|
<FlatList
|
|
data={ALBUM_LIST}
|
|
renderItem={({ item }) => (
|
|
<AlbumCard album={item} />
|
|
)}
|
|
keyExtractor={(item) => item.name}
|
|
/>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
height: 400,
|
|
}
|
|
});
|
|
|
|
export default ArtistList;
|
|
|
|
|