-
Notifications
You must be signed in to change notification settings - Fork 0
/
prizelist.js
49 lines (43 loc) · 1.62 KB
/
prizelist.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
import React, { Component } from 'react'
import {
StyleSheet,
TouchableOpacity,
Text,
View,
TextInput, Button,
Alert, FlatList, Image
} from 'react-native'
import Icon from 'react-native-vector-icons/Ionicons';
import Icon1 from 'react-native-vector-icons/FontAwesome5';
export default PrizeList = (props) => {
console.warn("myposition",props.position)
return (
<View style={style.layout}>
<View style={style.outer}>
<Icon1 style={{flex:0.5}} name="award" color="red" size={25}/>
<View style={{flex:1}}>
<View style={{flex:1,alignItems:'flex-start',justifyContent:'flex-start'}}>
<Text style={{fontSize:12,color:'#ddd',fontWeight:'bold'}}>
{props.position}
</Text>
</View>
<View style={{flex:1,alignItems:'flex-end'}}>
<Text style={{color:'green',fontWeight:'bold' }} >
{props.rate}
</Text>
</View>
</View>
</View>
</View>
);
}
const style=StyleSheet.create(
{
outer: {justifyContent:'center',alignItems:'center',
width:'70%',backgroundColor:'white',height:50,borderRadius:5,flexDirection:'row'
},layout: {
borderWidth:2,borderColor:'#ddd',elevation:20,shadowColor:'#ddd',shadowOpacity:10,shadowOffset:{height:5,width:0},
width:'30%',height:"70%",justifyContent:'center',alignItems:'center',backgroundColor:'white',borderRadius:5
}
}
)