-
Notifications
You must be signed in to change notification settings - Fork 1
/
SummonerView.js
63 lines (57 loc) · 1.27 KB
/
SummonerView.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
var React = require('react-native');
var AllHistory = require('./AllHistory.js');
var {
View,
Text,
Image,
TouchableHighlight,
StyleSheet,
} = React;
var SummonerView = React.createClass({
render: function() {
return (
<View style={styles.body}>
<View style={styles.container}>
<Image
style={styles.image}
source={{uri: this.props.summoner.icon}}/>
<View style={styles.rightContainer}>
<Text style = {[ styles.simpleText , styles.name]}>{this.props.summoner.name }</Text>
<Text style = {styles.simpleText}>level-{this.props.summoner.summonerLevel}</Text>
</View>
</View>
<AllHistory
summoner = {this.props.summoner}/>
</View>
);
},
});
var styles = StyleSheet.create({
body:{
backgroundColor:'#0B0B61',
},
container: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#0c0c34',
marginTop: 64
},
rightContainer: {
flex: 1,
},
name: {
fontSize: 30,
marginBottom: 8,
},
simpleText: {
color: '#E6E6E6',
textAlign: 'center',
},
image: {
width: 80,
height: 80,
margin: 5,
},
});
module.exports = SummonerView;