Skip to content

Commit 7cdd81b

Browse files
committed
Create Loading.js
1 parent 0a0ace9 commit 7cdd81b

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

app/screen/Loading.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
import React from "react";
2+
import { Text, StyleSheet, View, Image, Dimensions } from "react-native";
3+
const dimensions = Dimensions.get("screen");
4+
function Loading({ img_url, text_main, company_name, made_by }) {
5+
return (
6+
<>
7+
<View style={{ flex: 1 }}>
8+
<Image
9+
style={styles.image}
10+
source={{
11+
uri: "https://cdn.dribbble.com/users/2080921/screenshots/14908381/media/ead82a9b992b214980c75822f89f53dc.png?compress=1&resize=400x300",
12+
width: 323,
13+
height: 294,
14+
}}
15+
/>
16+
<Text style={styles.mainText}>{"Like Reading Stories ? \nUse"}</Text>
17+
<Text style={styles.nameText}>{"blog \n stories"}</Text>
18+
<Text></Text>
19+
<Text style={styles.made_by}>{"Made By Ranuga Disansa"}</Text>
20+
</View>
21+
</>
22+
);
23+
}
24+
const styles = StyleSheet.create({
25+
image: {
26+
top: 0,
27+
bottom: dimensions["width"] * 0.68,
28+
// left: dimensions["height"] * 0.083,
29+
// right: dimensions["height"] * 0.083,
30+
borderRadius: 147,
31+
},
32+
mainText: {
33+
fontFamily: "serif",
34+
fontStyle: "normal",
35+
fontWeight: "normal",
36+
fontSize: 25,
37+
lineHeight: 31,
38+
alignItems: "center",
39+
textAlign: "center",
40+
color: "#464646",
41+
},
42+
nameText: {
43+
fontFamily: "serif",
44+
fontStyle: "normal",
45+
fontWeight: "normal",
46+
fontSize: 50,
47+
lineHeight: 50,
48+
alignItems: "center",
49+
textAlign: "center",
50+
color: "#464646",
51+
marginTop: 10,
52+
},
53+
made_by: {
54+
fontFamily: "serif",
55+
fontStyle: "normal",
56+
fontWeight: "normal",
57+
fontSize: 25,
58+
lineHeight: 50,
59+
alignItems: "center",
60+
textAlign: "center",
61+
color: "#464646",
62+
position: "absolute",
63+
bottom: 0,
64+
alignItems: "center",
65+
justifyContent: "center",
66+
},
67+
design: {
68+
position: "absolute",
69+
width: "135px",
70+
height: "69px",
71+
left: "82.46px",
72+
top: "565.84px",
73+
elevation: 15,
74+
},
75+
});
76+
export default Loading;

0 commit comments

Comments
 (0)