-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
32 lines (29 loc) · 1000 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
import * as React from 'react';
import { Text, View, StyleSheet, Button, TouchableOpacity,Navigation,NavigatorIOS, } from 'react-native';
import Constants from 'expo-constants';
import { Card } from 'react-native-paper';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import History from './screens/History';
import HomePage from './screens/HomePage';
const Stack = createStackNavigator();
const App = ({navigation}) => {
return(
<NavigationContainer>
<Stack.Navigator
initialRouteName={"Home"}
screenOptions = {{
headerTitleAlign: 'center',
headerStyle: {
backgroundColor: '#964B00'
},
headerTintColor: 'white'
}}
>
<Stack.Screen name = "History" component = {History} />
<Stack.Screen name = "Home" component = {HomePage} />
</Stack.Navigator>
</NavigationContainer>
)
}
export default App;