-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathApp.js
More file actions
127 lines (125 loc) · 2.98 KB
/
Copy pathApp.js
File metadata and controls
127 lines (125 loc) · 2.98 KB
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
import React from "react";
import {
View,
Text,
StatusBar,
ScrollView,
SafeAreaView,
TouchableOpacity
} from "react-native";
import CachedImage from "react-native-easy-cached-image";
import { human } from "react-native-typography";
import Header from "./src/components/Header";
import Container from "./src/components/Container";
const styles = {};
const images = {
arr1: [
{
source: require("./assets/photos/photo-1.jpeg"),
artist: "Joseph Barrientos",
ig: "@jbcreate_"
},
{
source: require("./assets/photos/photo-2.jpeg"),
artist: "Amogh Manjunath",
ig: "@therealamogh"
},
{
source: require("./assets/photos/photo-3.jpeg"),
artist: "Chris Leipelt",
ig: "@cleipelt"
},
{
source: require("./assets/photos/photo-4.png"),
artist: "Joshua Sortino",
ig: "@sortino"
}
],
arr2: [
{
source: require("./assets/photos/photo-5.jpeg"),
artist: "Ian Schneider",
ig: "@goian"
},
{
source: require("./assets/photos/photo-6.jpeg"),
artist: "Tim Foster",
ig: "@timberfoster"
},
{
source: require("./assets/photos/photo-7.jpeg"),
artist: "Amogh Manjunath",
ig: "@therealamogh"
},
{
source: require("./assets/photos/photo-8.jpeg"),
artist: "Brandon Nelson",
ig: "@noodlenelson"
}
],
arr3: [
{
source: require("./assets/photos/photo-9.jpeg"),
artist: "Sasha • Stories"
},
{
source: require("./assets/photos/photo-10.jpeg"),
artist: "Alex Perry"
},
{
source: require("./assets/photos/photo-11.jpeg"),
artist: "Aaron Lau"
},
{
source: require("./assets/photos/photo-12.jpeg"),
artist: "Amogh Manjunath"
},
{
source: require("./assets/photos/photo-5.jpeg"),
artist: "Ian Schneider"
},
{
source: require("./assets/photos/photo-6.jpeg"),
artist: "Tim Foster"
},
{
source: require("./assets/photos/photo-7.jpeg"),
artist: "Amogh Manjunath"
},
{
source: require("./assets/photos/photo-8.jpeg"),
artist: "Brandon Nelson"
},
{
source: require("./assets/photos/photo-1.jpeg"),
artist: "Joseph Barrientos"
},
{
source: require("./assets/photos/photo-2.jpeg"),
artist: "Amogh Manjunath"
},
{
source: require("./assets/photos/photo-3.jpeg"),
artist: "Chris Leipelt"
},
{
source: require("./assets/photos/photo-4.png"),
artist: "Joshua Sortino"
}
]
};
export default class App extends React.Component {
render() {
return (
<SafeAreaView style={{ flex: 1 }}>
<StatusBar barStyle="dark-content" />
<ScrollView>
<Header />
<Container data={images.arr1} />
<Container data={images.arr2} title="Popular" type="normal" />
<Container data={images.arr3} title="Awesome Artists" type="circle" />
</ScrollView>
</SafeAreaView>
);
}
}