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.
37 lines
891 B
37 lines
891 B
// @ts-ignore
|
|
import React from 'react';
|
|
import {View, Image, Text, StyleSheet, TouchableNativeFeedback} from 'react-native';
|
|
|
|
const ArtistCard = ({ navigation, item }) => {
|
|
|
|
return (
|
|
<TouchableNativeFeedback onPress={() => { navigation.navigate("ArtistDetail",{"artist":item});}}>
|
|
<View style={styles.container}>
|
|
<Image source={{ uri: item.image }} style={styles.image}/>
|
|
<Text style={styles.name}>{item.name}</Text>
|
|
</View>
|
|
</TouchableNativeFeedback>
|
|
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
margin: 10,
|
|
},
|
|
image: {
|
|
width: 50,
|
|
height: 50,
|
|
borderRadius: 40,
|
|
marginRight: 10,
|
|
},
|
|
name: {
|
|
fontSize: 20,
|
|
fontWeight: 'bold',
|
|
},
|
|
});
|
|
|
|
export default ArtistCard;
|