-
Notifications
You must be signed in to change notification settings - Fork 12
/
App.js
188 lines (177 loc) · 4.94 KB
/
App.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
import * as React from 'react';
import {
Text,
View,
StyleSheet ,
SafeAreaView,
Image,
Dimensions
} from 'react-native';
const Dev_Height = Dimensions.get("window").height
const Dev_Width = Dimensions.get("window").width
import {AntDesign,Entypo,Feather} from "react-native-vector-icons"
import Slider from '@react-native-community/slider';
import ProgressCircle from 'react-native-progress-circle'
export default class App extends React.Component {
render(){
return(
<SafeAreaView style={styles.contanier}>
<View style={styles.mainbar}>
<AntDesign name="left" size={24} style={{marginLeft:"5%"}} />
<Text style={styles.now_playing_text}> Now Playing </Text>
<Entypo name="dots-three-horizontal" size={24} style={{marginLeft:"20%"}} />
</View>
<View style={styles.music_logo_view}>
<Image source={require("./assets/logo.jpg")} style={styles.image_view}/>
</View>
<View style={styles.name_of_song_View} >
<Text style={styles.name_of_song_Text1}>#02 - Practice</Text>
<Text style={styles.name_of_song_Text2}>Digital Marketing - By Setup Cast</Text>
</View>
<View style={styles.slider_view}>
<Text style={styles.slider_time}> 4:10 </Text>
<Slider
style={styles.slider_style}
minimumValue={0}
maximumValue={12.02}
minimumTrackTintColor="#e75480"
maximumTrackTintColor="#d3d3d3"
thumbTintColor="#e75480"
value={3.5}
/>
<Text style={styles.slider_time}>12:02</Text>
</View>
<View style={styles.functions_view}>
<Entypo name="shuffle" size={24} color="#e75480" style={{marginLeft:"9%"}}/>
<Entypo name="controller-fast-backward" size={24} color="#e75480" style={{marginLeft:"12%"}}/>
<AntDesign name="pausecircle" size={50} color="#e75480" style={{marginLeft:"12%"}}/>
<Entypo name="controller-fast-forward" size={24} color="#e75480" style={{marginLeft:"12%"}}/>
<Feather name="repeat" size={20} color="#e75480" style={{marginLeft:"10%"}}/>
</View>
<View style={styles.recently_played_view}>
<Text style={styles.recently_played_text}> Recently Played </Text>
<View style={styles.recently_played_list}>
<Image source={require("./assets/logo.jpg")} style={styles.recently_played_image} />
<View style={styles.recently_played_list_text}>
<Text style={styles.recently_played_list_text1}> #01 - Start With SEO </Text>
<Text style={styles.recently_played_list_text2}> By Setup Cast - 15: 35 </Text>
</View>
<View>
<ProgressCircle
percent={40}
radius={25}
borderWidth={5}
color="#e75480"
shadowColor="#FFF"
bgColor="#fff">
<AntDesign name="play" size={37} color="#e75480" style={{marginTop:"4%"}}/>
</ProgressCircle>
</View>
</View>
</View>
</SafeAreaView>
)
}
}
const styles = StyleSheet.create({
contanier:{
height:Dev_Height,
width:Dev_Width
},
mainbar:{
height:"10%",
width:"100%",
flexDirection:"row",
alignItems:"center",
},
now_playing_text:{
fontSize:19,
marginLeft:"24%"
},
music_logo_view:{
height:"30%",
width:"100%",
justifyContent:"center",
alignItems:"center",
},
image_view:{
height:"100%",
width:"50%",
borderRadius:10
},
name_of_song_View:{
height:"15%",
width:"100%",
alignItems:"center",
justifyContent:"center"
},
name_of_song_Text1:{
fontSize:19,
fontWeight:"500"
},
name_of_song_Text2:{
color:"#808080",
marginTop:"4%"
},
slider_view:{
height:"10%",
width:"100%",
alignItems:"center",
flexDirection:"row"
},
slider_style:{
height:"70%",
width:"60%"
},
slider_time:{
fontSize:15,
marginLeft:"6%",
color:"#808080"
},
functions_view:{
flexDirection:"row",
height:"10%",
width:"100%",
alignItems:"center"
},
recently_played_view:{
height:"25%",
width:"100%",
},
recently_played_text:{
fontWeight:"bold",
fontSize:16,
color:"#808080",
marginLeft:"5%",
marginTop:"6%"
},
recently_played_list:{
backgroundColor:"#FFE3E3",
height:"50%",
width:"90%",
borderRadius:10,
marginLeft:"5%",
marginTop:"5%",
alignItems:"center",
flexDirection:"row"
},
recently_played_image:{
height:"80%",
width:"20%",
borderRadius:10
},
recently_played_list_text:{
height:"100%",
width:"60%",
justifyContent:"center"
},
recently_played_list_text1:{
fontSize:15,
marginLeft:"8%"
},
recently_played_list_text2:{
fontSize:16,
color:"#808080",
marginLeft:"8%"
}
})