Skip to content

Commit b2d7924

Browse files
committed
Music App UI
1 parent f36d2b8 commit b2d7924

File tree

11 files changed

+303
-1
lines changed

11 files changed

+303
-1
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules/**/*
2+
.expo/*
3+
npm-debug.*
4+
*.jks
5+
*.p8
6+
*.p12
7+
*.key
8+
*.mobileprovision
9+
*.orig.*
10+
web-build/
11+
12+
# macOS
13+
.DS_Store

App.js

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
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+

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
# Music-Player-UI-React-Native
1+
# Sample Snack app
2+
3+
Open the `App.js` file to start writing some code. You can preview the changes directly on your phone or tablet by clicking the **Run** button or use the simulator by clicking **Tap to Play**. When you're done, click **Save** and share the link!
4+
5+
When you're ready to see everything that Expo provides (or if you want to use your own editor) you can **Export** your project and use it with [expo-cli](https://docs.expo.io/versions/latest/introduction/installation.html).
6+
7+
All projects created in Snack are publicly available, so you can easily share the link to this project via link, or embed it on a web page with the **Embed** button.
8+
9+
If you're having problems, you can tweet to us [@expo](https://twitter.com/expo) or ask in our [forums](https://forums.expo.io).
10+
11+
Snack is Open Source. You can find the code on the [GitHub repo](https://github.com/expo/snack-web).

app.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"expo": {
3+
"name": "belgin-android",
4+
"slug": "snack-66a1336d-ade4-472d-8056-b8b35c590b78",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "contain",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": [
17+
"**/*"
18+
],
19+
"ios": {
20+
"supportsTablet": true
21+
},
22+
"web": {
23+
"favicon": "./assets/favicon.png"
24+
}
25+
}
26+
}

assets/favicon.png

1.43 KB
Loading

assets/icon.png

642 Bytes
Loading

assets/logo.jpg

41 KB
Loading

assets/splash.png

9.09 KB
Loading

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
};
6+
};

components/AssetExample.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import * as React from 'react';
2+
import { Text, View, StyleSheet, Image } from 'react-native';
3+
4+
export default function AssetExample() {
5+
return (
6+
<View style={styles.container}>
7+
<Text style={styles.paragraph}>
8+
Local files and assets can be imported by dragging and dropping them into the editor
9+
</Text>
10+
<Image style={styles.logo} source={require('../assets/snack-icon.png')} />
11+
</View>
12+
);
13+
}
14+
15+
const styles = StyleSheet.create({
16+
container: {
17+
alignItems: 'center',
18+
justifyContent: 'center',
19+
padding: 24,
20+
},
21+
paragraph: {
22+
margin: 24,
23+
marginTop: 0,
24+
fontSize: 14,
25+
fontWeight: 'bold',
26+
textAlign: 'center',
27+
},
28+
logo: {
29+
height: 128,
30+
width: 128,
31+
}
32+
});

0 commit comments

Comments
 (0)