forked from gitbrent/JonssonConnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
101 lines (92 loc) · 3.14 KB
/
App.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
101
/**
* JonssonConnect Application
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { ActivityIndicator, AsyncStorage, Image, ListView, FlatList, StyleSheet, TouchableHighlight, View } from 'react-native';
import { TabNavigator, StackNavigator } from "react-navigation";
import { Container, Header, Content, Card, CardItem, Thumbnail, Icon, Text, Title, Button, Left, Body, Right, H1, H2, H3 } from 'native-base';
//import ComputerScience from './tabs/ComputerScience'
//import Profile from './tabs/Profile'
import Home from './tabs/Home';
import Jobs from './tabs/Jobs';
import Events from './tabs/Events';
import Login from './tabs/Login';
import EventDetails from './tabs/EventDetails';
import JobsDetails from './tabs/JobsDetails';
import ArticleDetails from './tabs/ArticleDetails';
import * as firebase from 'firebase';
// Initialize Firebase
export var config = {
apiKey: "TODO",
authDomain: "jonssonconnect.firebaseapp.com",
databaseURL: "https://jonssonconnect.firebaseio.com",
projectId: "jonssonconnect",
storageBucket: "jonssonconnect.appspot.com",
};
export const firebaseApp = firebase.initializeApp(config);
export const HomeFeedStack = StackNavigator({
Home: {
screen: Home,
navigationOptions:({navigation}) => ({
title: "News Feed",
headerStyle: { paddingRight: 10, paddingLeft: 10, backgroundColor: '#ffffff', borderBottomWidth: 1},
headerTitleStyle: { fontSize: 18, fontWeight: '100'},
})
},
ArticleDetails: {screen: ArticleDetails},
});
export const EventsFeedStack = StackNavigator({
EventsTab: {
screen: Events,
navigationOptions:({navigation}) => ({
title: "Event Listings",
headerStyle: { paddingRight: 10, paddingLeft: 10, backgroundColor: '#ffffff', borderBottomWidth: 1},
headerTitleStyle: { fontSize: 18, fontWeight: '100' },
})
},
EventDetails: {screen: EventDetails},
});
export const JobsFeedStack = StackNavigator({
JobsTab: {
screen: Jobs,
navigationOptions:({navigation}) => ({
title: "Job Listings",
headerStyle: { paddingRight: 10, paddingLeft: 10, backgroundColor: '#ffffff', borderBottomWidth: 1},
headerTitleStyle: { fontSize: 18, fontWeight: '100' },
})
},
JobsDetails: {screen: JobsDetails},
});
export const AppScreenNavigator = TabNavigator({
HomeFeedStack: {screen: HomeFeedStack},
JobsTab: {screen: JobsFeedStack},
EventsTab: {screen: EventsFeedStack},
},
{
tabBarPosition: 'bottom',
swipeEnabled: false,
animationEnabled: false,
tabBarOptions: {
activeTintColor: '#3e9876',
activeBackgroundColor: '#ffffff',
inactiveBackgroundColor: '#ffffff',
inactiveTintColor: '#B7C3D0',
}
});
const AppNavigator = StackNavigator({
Login:{screen: Login,
navigationOptions:({navigation}) => ({
header: null
})},
AppScreenNavigator:{screen: AppScreenNavigator,
navigationOptions:({navigation}) => ({
gesturesEnabled: false,
header: null})
}});
AppScreenNavigator.navigationOptions = {
title: "App"
};
export default AppNavigator
//export default AppScreenNavigator