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.
35 lines
745 B
35 lines
745 B
import React from 'react';
|
|
import { View, Image, Text, StyleSheet } from 'react-native';
|
|
|
|
const ArtistPage = ({ name, imageUri }) => {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Image source={{ uri: imageUri }} style={styles.image} />
|
|
<Text style={styles.name}>{name}</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
marginTop:40,
|
|
alignItems: 'center'
|
|
|
|
},
|
|
image: {
|
|
width: 150,
|
|
height: 150,
|
|
marginBottom: 10,
|
|
borderRadius: 100,
|
|
borderWidth: 2,
|
|
borderColor: 'black'
|
|
},
|
|
name: {
|
|
fontSize: 20,
|
|
fontWeight: 'bold',
|
|
textAlign: 'center',
|
|
},
|
|
});
|
|
|
|
export default ArtistPage;
|