-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
34 lines (32 loc) · 984 Bytes
/
App.tsx
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
import React from 'react'
import { createStackNavigator } from 'react-navigation';
import ContactListScreen from './src/screens/ContactListScreen';
import ContactScreen from './src/screens/ContactScreen';
import NewContactScreen from './src/screens/NewContactScreen';
import ContactOperationScreen from './src/screens/ContactOperationScreen';
import ContactHistoryScreen from './src/screens/ContactHistoryScreen';
const RootStack = createStackNavigator(
{
ContactList: ContactListScreen,
Contact: ContactScreen,
NewContact: NewContactScreen,
ContactOperation: ContactOperationScreen,
ContactHistory: ContactHistoryScreen,
}, {
initialRouteName: 'ContactList',
navigationOptions: {
headerStyle: {
backgroundColor: '#7caeff',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
},
}
);
export default class App extends React.Component {
render() {
return <RootStack />
}
}