Backend/Page/Team_Browser
parent
9433a61ed7
commit
7227a4cab0
@ -0,0 +1,39 @@
|
||||
import { View,Image,Text, StyleSheet } from "react-native";
|
||||
import { Team } from "../core/Team";
|
||||
|
||||
type TeamListItemProps = {
|
||||
team: Team;
|
||||
}
|
||||
|
||||
export default function TeamListItem(props: TeamListItemProps) {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Image style={styles.teaserImage} source={props.team.getLogo()} />
|
||||
<Text style={styles.text_style}> {props.team.getName()}</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
alignItems:'center',
|
||||
backgroundColor:'#e1e8ee',
|
||||
padding:10,
|
||||
flex: 1,
|
||||
flexDirection: "row",
|
||||
marginTop:10,
|
||||
},
|
||||
text_style:{
|
||||
marginLeft:15,
|
||||
textAlign:'center',
|
||||
fontSize:20,
|
||||
},
|
||||
teaserImage: {
|
||||
borderWidth:1,
|
||||
borderColor:'black',
|
||||
borderRadius:50,
|
||||
width: 50,
|
||||
height: 50,
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in new issue