-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
54 lines (51 loc) · 1.2 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
import React from 'react';
import {View, Text} from 'react-native';
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import AttendanceScreen from './src/screens/AttendanceScreen';
import LoginScreen from './src/screens/LoginScreen';
import AppHome from './src/screens/AppHome';
// export default function App(){
// return (
// <View style = {{alignContent: 'center', justifyContent: 'center'}}>
// <Text>Hello!</Text>
// </View>
// );
// }
const AppNavigator = createStackNavigator({
Attendance: {
screen: AttendanceScreen,
navigationOptions: {
title: 'Welcome'
}
},
Login: {
screen: LoginScreen,
navigationOptions: {
title: 'Login'
}
},
AppHome: {
screen: AppHome,
navigationOptions: {
headerShown: false,
}
}
},
{
initialRouteName: 'Login',
defaultNavigationOptions: {
headerStyle: {
backgroundColor: '#3498db',
elevation: 10,
height: 100,
shadowOpacity: 0
},
// headerTintColor: '#000',
headerTitleStyle: {
fontWeight: 'bold',
color: '#ffffff'
}
}
})
export default createAppContainer(AppNavigator);