This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
executable file
·72 lines (63 loc) · 1.88 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
import React from 'react';
import { createStackNavigator, createSwitchNavigator } from 'react-navigation';
import Splash from './src/components/Splash';
import Terms from './src/components/Terms';
import Authentication from './src/components/Authentication/index';
import LoginPage from './src/components/Login';
import RegisterPage from './src/components/Register';
import Profile from './src/components/Profile';
import Message from './src/components/Message';
import Chat from './src/components/Chat';
import Like from './src/components/Like';
import EditProfile from './src/components/EditProfile';
import PublicProfile from './src/components/PublicProfile';
import LikeProfile from './src/components/LikeProfile';
import ForgotPage from './src/components/Forgot';
import Topbar from './src/utils/TopBar';
import Notifications from './src/components/Notifications';
import Report from './src/modules/report/Report';
import REPORT_ROUTE_KEY from './src/modules/report/index';
import { Root } from 'native-base';
const AppStack = createStackNavigator(
{
Bar: Topbar,
Profile: Profile,
EditProfile: EditProfile,
PublicProfile: PublicProfile,
LikeProfile: LikeProfile,
Notifications: Notifications,
Chat: Chat,
Message: Message,
Like: Like,
[REPORT_ROUTE_KEY]: Report,
},
{
initialRouteName: 'Bar',
}
);
const AuthStack = createStackNavigator({
SignIn: Authentication,
Register: RegisterPage,
Terms: Terms,
Login: LoginPage,
Forgot: ForgotPage,
});
// const NotificationsStack = createStackNavigator({
//
// });
const AppNavigator = createSwitchNavigator(
{
AuthLoading: Splash,
App: AppStack,
Auth: AuthStack,
},
{
initialRouteName: 'AuthLoading',
}
);
const App = () => (
<Root>
<AppNavigator />
</Root>
);
export default App;