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