-
Notifications
You must be signed in to change notification settings - Fork 0
/
drawerContentComponents.js
100 lines (95 loc) · 4.13 KB
/
drawerContentComponents.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
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
import React, { Component } from 'react';
import {NavigationActions} from 'react-navigation';
import { Text, View, StyleSheet, ImageBackground } from 'react-native'
export default class drawerContentComponents extends Component {
navigateToScreen = ( route ) =>(
() => {
const navigateAction = NavigationActions.navigate({
routeName: route
});
this.props.navigation.dispatch(navigateAction);
})
render() {
return (
<View style={styles.container}>
<View style={styles.headerContainer}>
<ImageBackground source={require('./assets/logo.png')} style={{flex: 1, marginTop: 15 }} >
</ImageBackground>
</View>
<View style={styles.screenContainer}>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Aitc')}>Aitc</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('AlbRecovery')}>AlbRecovery</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('AlbaSolutions')}>AlbaSolutions</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Blog')}>Minimal Blog</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Daniel')}>Daniel</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Faas')}>FAAS</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Gaa')}>GAA</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Gsa')}>GSA</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('HoteliGjuetise')}>Hoteli Gjuetise</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('ProductManagement')}>Product Management</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Samuele')}>Samuele</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Suko')}>Suko</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Albania')}>Albania</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Unitir')}>Unitir</Text>
</View>
<View style={styles.screenStyle}>
<Text style={styles.textStyle} onPress={this.navigateToScreen('Kozo')}>Kozo</Text>
</View>
</View>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
alignItems: 'center',
backgroundColor: '#2cf2d1',
height: '100%'
},
headerContainer: {
height: 150,
width: 180,
borderBottomColor: '#2cf2d1',
borderBottomWidth: 2,
},
screenContainer: {
paddingTop: 20
},
screenStyle: {
height: 30,
marginTop: 2,
flexDirection: 'row',
alignItems: 'center'
},
textStyle: {
color: 'white',
fontWeight: 'bold'
}
});