-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tv_Video.js
45 lines (39 loc) · 1.17 KB
/
Tv_Video.js
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
import { FlatList, Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'
import React from 'react'
import { demo_data, Viedo_data } from './DemoProducts'
const Tv_Video = () => {
return (
<View>
<Text style={styles.text_Trending}>Series Videos</Text>
<FlatList
data={Viedo_data}
horizontal
keyExtractor={(val) => val.id}
renderItem={({ item, index }) => {
return (
<View style={styles.box} key={index}>
<TouchableOpacity>
<Image source={{ uri: item.image }} style={{ width: 120, height: 170 }} />
</TouchableOpacity>
</View>
)
}}
/>
</View>
)
}
export default Tv_Video
const styles = StyleSheet.create({
text_Trending: {
color: '#ffffff',
fontSize: 16,
marginHorizontal: 10,
marginTop: 10
}, box: {
width: 120,
height: 170,
borderWidth: 1,
marginLeft: 10,
marginTop: 5
}
})