Skip to content

Commit 58d6ded

Browse files
committed
GorgeousHeader: Library is ready. Need to refactory
1 parent b043db4 commit 58d6ded

File tree

12 files changed

+98
-4
lines changed

12 files changed

+98
-4
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ import { ClassicHeader } from "@freakycoder/react-native-header-view";
271271

272272
\* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_
273273

274+
## Credits
275+
276+
Photo by [Joanna Nix](https://unsplash.com/@joanna_nix?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/9Zso3BvhuCk)
277+
274278
## Author
275279

276280
FreakyCoder, [email protected]
176 KB
Loading

example/lib/local-assets/menu-1.png

3.76 KB
Loading

example/lib/local-assets/menu.png

-35 Bytes
Loading

example/lib/local-assets/search.png

19.7 KB
Loading

example/lib/src/components/GorgeousHeader/GorgeousHeader.js

+30-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { Component } from "react";
2-
import { Text, View, Image, TouchableOpacity } from "react-native";
2+
import { Text, View, Image, TouchableOpacity, TextInput } from "react-native";
3+
import Icon from "react-native-dynamic-vector-icons";
34
/**
45
* ? Local Imports
56
*/
@@ -18,18 +19,43 @@ export default class GorgeousHeader extends Component {
1819

1920
<TouchableOpacity style={{ marginLeft: "auto" }} onPress={() => {}}>
2021
<Image
22+
style={{ height: 40, width: 40, borderRadius: 20 }}
2123
source={require("../../../local-assets/omid-armin-unsplash.jpg")}
22-
style={{ height: 30, width: 30, borderRadius: 16 }}
2324
/>
2425
</TouchableOpacity>
2526
</View>
26-
<View style={{ marginTop: 32 }}>
27+
<View style={{ marginTop: 24 }}>
2728
<Text style={{ color: "#2c2305", fontSize: 46, fontWeight: "bold" }}>
2829
Order
2930
</Text>
30-
<Text style={{ fontSize: 14, color: "#999893" }}>
31+
<Text
32+
style={{
33+
fontSize: 13,
34+
marginTop: 5,
35+
fontWeight: "400",
36+
color: "#999893",
37+
}}
38+
>
3139
Healthy food can keep you fit.
3240
</Text>
41+
<View
42+
style={{
43+
padding: 16,
44+
marginTop: 48,
45+
borderRadius: 24,
46+
flexDirection: "row",
47+
backgroundColor: "#f8f8f8",
48+
}}
49+
>
50+
<Image
51+
style={{ height: 20, width: 20 }}
52+
source={require("../../../local-assets/search.png")}
53+
/>
54+
<TextInput
55+
style={{ marginLeft: 12, fontWeight: "500" }}
56+
placeholder="Search something"
57+
/>
58+
</View>
3359
</View>
3460
</View>
3561
);

lib/local-assets/menu-1.png

3.76 KB
Loading

lib/local-assets/menu.png

3.73 KB
Loading
1.41 MB
Loading

lib/local-assets/search.png

19.7 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import React, { Component } from "react";
2+
import { Text, View, Image, TouchableOpacity, TextInput } from "react-native";
3+
import Icon from "react-native-dynamic-vector-icons";
4+
/**
5+
* ? Local Imports
6+
*/
7+
import styles from "./GorgeousHeader.style";
8+
9+
const menuImg = require("../../../local-assets/menu.png");
10+
11+
export default class GorgeousHeader extends Component {
12+
render() {
13+
return (
14+
<View style={{ margin: 32 }}>
15+
<View style={{ flexDirection: "row" }}>
16+
<TouchableOpacity style={{ marginRight: "auto" }} onPress={() => {}}>
17+
<Image source={menuImg} style={{ height: 20, width: 20 }} />
18+
</TouchableOpacity>
19+
20+
<TouchableOpacity style={{ marginLeft: "auto" }} onPress={() => {}}>
21+
<Image
22+
style={{ height: 40, width: 40, borderRadius: 20 }}
23+
source={require("../../../local-assets/omid-armin-unsplash.jpg")}
24+
/>
25+
</TouchableOpacity>
26+
</View>
27+
<View style={{ marginTop: 24 }}>
28+
<Text style={{ color: "#2c2305", fontSize: 46, fontWeight: "bold" }}>
29+
Order
30+
</Text>
31+
<Text
32+
style={{
33+
fontSize: 13,
34+
marginTop: 5,
35+
fontWeight: "400",
36+
color: "#999893",
37+
}}
38+
>
39+
Healthy food can keep you fit.
40+
</Text>
41+
<View
42+
style={{
43+
padding: 16,
44+
marginTop: 48,
45+
borderRadius: 24,
46+
flexDirection: "row",
47+
backgroundColor: "#f8f8f8",
48+
}}
49+
>
50+
<Image
51+
style={{ height: 20, width: 20 }}
52+
source={require("../../../local-assets/search.png")}
53+
/>
54+
<TextInput
55+
style={{ marginLeft: 12, fontWeight: "500" }}
56+
placeholder="Search something"
57+
/>
58+
</View>
59+
</View>
60+
</View>
61+
);
62+
}
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default {};

0 commit comments

Comments
 (0)