-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
60 lines (45 loc) · 1.63 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import * as React from 'react';
import { StyleSheet, Text, View, ScrollView } from 'react-native';
import { device, gStyle } from './constants';
// components
import Categories from './components/categories';
import MediaItemScroller from './components/mediaItemScroller';
import SlideShow from './components/slideshow';
// icons
import SvgBackground from './components/icons/Svg.Background';
import SvgDisneyPlusLogo from './components/icons/Svg.DisneyPlusLogo';
const Home = () => (
<View style={gStyle.container}>
<View style={gStyle.posAbsolute}>
<SvgBackground />
</View>
<ScrollView scrollEventThrottle={16} showsVerticalScrollIndicator={false}>
<View style={styles.containerHeader}>
<SvgDisneyPlusLogo />
</View>
<SlideShow />
<Categories />
<Text style={gStyle.heading}>Originals</Text>
<MediaItemScroller dataset="originals" />
<Text style={gStyle.heading}>Recommended For You</Text>
<MediaItemScroller dataset="recommended" />
<Text style={gStyle.heading}>Hit Movies</Text>
<MediaItemScroller dataset="hits" />
<Text style={gStyle.heading}>Trending</Text>
<MediaItemScroller dataset="trending" />
<Text style={gStyle.heading}>Out of the Vault</Text>
<MediaItemScroller dataset="vault" />
<Text style={gStyle.heading}>Ultra HD and HDR</Text>
<MediaItemScroller dataset="hdr" />
<View style={gStyle.spacer24} />
</ScrollView>
</View>
);
const styles = StyleSheet.create({
containerHeader: {
alignItems: 'center',
marginBottom: 8,
paddingTop: device.iPhoneNotch ? 36 : 6
}
});
export default Home;