-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstPage.js
More file actions
82 lines (79 loc) · 2.13 KB
/
FirstPage.js
File metadata and controls
82 lines (79 loc) · 2.13 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
import React, { Component } from 'react';
import { StyleSheet, View, Button, Text, ScrollView} from 'react-native';
export default class FirstPage extends Component {
static navigationOptions = {
title: 'Departments Page',
headerStyle: {
backgroundColor: '#f4511e',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
};
render() {
const { navigate } = this.props.navigation;
return (
<View style={styles.container}>
<View style={styles.quote}>
<Text>“We are a non-profit organization, we are looking forward to a peaceful world by helping each other to join hands together to bring a better future for all children”</Text>
</View>
<Button title='Research and Development'
onPress={() =>navigate('SecondPage')}
/>
<View style = {styles.buttonSpace}/>
<Button title='Marketing'
onPress={() =>navigate('ThirdPage')}
/>
<View style = {styles.buttonSpace}/>
<Button title='Finance'
onPress={() =>navigate('FourthPage')}
/>
<View style = {styles.buttonSpace}/>
<Button title='External Relations'
onPress={() =>navigate('FifthPage')}
/>
<View style = {styles.buttonSpace}/>
<Button title='Recruitment'
onPress={() =>navigate('SixthPage')}
/>
<View style = {styles.buttonSpace}/>
<Button title='Human Resources'
onPress={() =>navigate('SeventhPage')}
/>
<View style = {styles.buttonSpace}/>
<Button title='CEO'
onPress={() =>navigate('EighthPage')}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
boldT: {
fontWeight: 'bold',
fontSize: 20,
backgroundColor: 'red',
},
quote: {
backgroundColor: 'yellow',
padding: 20,
marginBottom: 20,
},
links: {
marginTop: 24,
backgroundColor: 'yellow',
alignItems: 'center',
padding: 30,
},
buttonSpace:{
width:20,
height: 10,
}
});