-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
99 lines (92 loc) · 2.31 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
import React, { Component } from 'react';
import { Dimensions } from 'react-native';
import Login from './src/screens/Login';
import {
createStackNavigator,
createDrawerNavigator,
createSwitchNavigator,
} from 'react-navigation';
import Signup from './src/screens/Signup';
import Overview from './src/screens/Overview';
import LiveCampaigns from './src/screens/LiveCampaigns';
import Sidebar from './src/components/Sidebar';
import Analysis from './src/screens/Analysis';
import Calender from './src/screens/Calender';
import ConnectSocial from './src/screens/ConnectSocial';
import Messages from './src/screens/Messages';
import AccountDetails from './src/screens/AccountDetails';
import NewCampaigns from './src/screens/NewCampaigns';
import CalenderPop from './src/components/CalenderPop';
import LoadingScreen from './src/screens/LoadingScreen';
import { Provider } from './src/data/CampaignsData';
const AuthStackNavigator = createStackNavigator(
{
SignUp: Signup,
LogIn: Login,
},
{
headerMode: 'none',
}
);
const HomeDrawerNavigator = createDrawerNavigator(
{
overview: Overview,
liveCampaigns: LiveCampaigns,
Performance: Analysis,
calender: Calender,
messages: Messages,
accountDetails: AccountDetails,
connectSocial: ConnectSocial,
},
{
mode: 'card',
initialRouteName: 'overview',
drawerWidth: Dimensions.get('window').width - 100,
contentComponent: Sidebar,
contentOptions: {
activeTintColor: '#4A4A4A',
inactiveTintColor: '#9B9B9B',
activeBackgroundColor: 'transparent',
labelStyle: {
fontSize: 16,
fontWeight: '400',
},
itemsContainerStyle: {
marginHorizontal: 15,
},
iconContainerStyle: {
opacity: 1,
},
},
}
);
const OtherScreens = createStackNavigator(
{
newCampaigns: NewCampaigns,
calender: CalenderPop,
},
{
mode: 'modal',
headerMode: 'none',
cardStyle: {
backgroundColor: 'transparent',
opacity: 1,
},
}
);
const CustomStack = createSwitchNavigator({
LoadingScreen: LoadingScreen,
Auth: AuthStackNavigator,
Home: HomeDrawerNavigator,
otherScreens: OtherScreens,
});
class App extends Component {
render() {
return (
<Provider>
<CustomStack />
</Provider>
);
}
}
export default App;