-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (38 loc) · 830 Bytes
/
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
import React from 'react';
import { createStackNavigator } from 'react-navigation';
import { HomeScreen } from './HomeScreen';
import { LoginScreen } from './LoginScreen';
const RootStack = createStackNavigator(
{
Login: {
screen: LoginScreen,
navigationOptions: () => ({
headerTitle: 'Anmeldung',
headerStyle: {
backgroundColor: '#1976d2',
},
headerTintColor: '#fff',
})
},
Home: {
screen: HomeScreen,
navigationOptions: () => ({
headerTitle: 'Übersicht',
headerStyle: {
backgroundColor: '#1976d2',
},
headerTintColor: '#fff',
})
}
},
{
initialRouteName: 'Home'
}
);
export default class App extends React.Component {
render() {
return (
<RootStack />
);
}
}