-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathindex.android.js
60 lines (56 loc) · 1.33 KB
/
index.android.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
'use strict';
import React from 'react';
import {
AppRegistry,
} from 'react-native';
import {
StackNavigator
} from 'react-navigation';
import LaunchPage from './app/routes/Launch/index.js';
import HomePage from './app/routes/Home/index.js';
import LoginPage from './app/routes/Login/index.js';
import ChatPage from './app/routes/Chat/index.js';
import UpdateMyInfoPage from './app/routes/UpdateMyInfo/index.js';
import GroupsPage from './app/routes/Groups/index.js';
import FriendInfoPage from './app/routes/FriendInfo/index.js';
import RegisterPage from './app/routes/Register/index.js';
const ReactJChat = StackNavigator({
Launch: { screen: LaunchPage },
Home: {
screen: HomePage ,
navigationOptions: {
headerLeft: null,
gesturesEnabled: false,
},
},
Login: {
screen: LoginPage,
navigationOptions: {
headerLeft: null,
gesturesEnabled: false,
},
},
Chat: {
type: 'Reset',
screen: ChatPage,
path: 'people/:conversation'
},
UpdataMyInfo: {
type: 'Reset',
screen: UpdateMyInfoPage,
},
Groups: {
type: 'Reset',
screen: GroupsPage,
},
FriendInfo: {
type: 'Reset',
screen: FriendInfoPage,
path: 'people/:user'
},
Register: {
type: 'Reset',
screen: RegisterPage,
}
});
AppRegistry.registerComponent('ReactJChat', () => ReactJChat);