-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnapchat.tsx
73 lines (69 loc) · 1.73 KB
/
Snapchat.tsx
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
import React from 'react'
import { View, StyleSheet } from 'react-native'
import { ScrollView } from 'react-native-gesture-handler'
import { Story } from './Model'
import StoryThumbnail from './StoryThumbnail'
export const stories: Story[] = [
{
id: "2",
source: require("./assets/stories/2.jpg"),
user: "derek.russel",
avatar: require("./assets/avatars/derek.russel.png"),
},
{
id: "4",
source: require("./assets/stories/4.jpeg"),
user: "jmitch",
avatar: require("./assets/avatars/jmitch.png"),
},
{
id: "7",
source: require("./assets/stories/7.jpeg"),
user: "andrea.schmidt",
avatar: require("./assets/avatars/andrea.schmidt.png"),
video: require("./assets/stories/7.mp4"),
},
{
id: "5",
source: require("./assets/stories/5.jpeg"),
user: "monicaa",
avatar: require("./assets/avatars/monicaa.png"),
},
{
id: "3",
source: require("./assets/stories/3.jpeg"),
user: "alexandergarcia",
avatar: require("./assets/avatars/alexandergarcia.png"),
},
{
id: "1",
source: require("./assets/stories/1.jpeg"),
user: "andrea.schmidt",
avatar: require("./assets/avatars/andrea.schmidt.png"),
},
{
id: "6",
source: require("./assets/stories/6.jpeg"),
user: "andrea.schmidt",
avatar: require("./assets/avatars/andrea.schmidt.png"),
},
]
const Snapchat = () => {
return (
<ScrollView>
<View style={styles.container}>
{stories.map((story) => (
<StoryThumbnail key={story.id} story={story} />
))}
</View>
</ScrollView>
)
}
const styles = StyleSheet.create({
container: {
flexDirection: "row",
flexWrap: "wrap",
justifyContent: "space-evenly",
}
})
export default Snapchat