-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
40 lines (35 loc) · 1.27 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
import React, { useState, useEffect } from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import { StyleSheet, Text, View, Image, Platform } from 'react-native';
import { withAuthenticator } from 'aws-amplify-react-native'
import Dashboard from './src/Dashboard';
import MySavedLocations from './src/MySavedLocations';
import MyMapView from './src/MyMapView';
import { Amplify } from 'aws-amplify';
import awsconfig from './src/aws-exports';
Amplify.configure({
...awsconfig,
Analytics: {
disabled: true,
},
});
import { LogBox } from 'react-native';
LogBox.ignoreLogs(['Setting a timer']);
const Stack = createStackNavigator();
class App extends React.Component {
render () {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name='Dashboard' component={Dashboard} options={{ headerShown: true }}/>
<Stack.Screen name='MySavedLocations' component={MySavedLocations} options={{ headerShown: true }}/>
<Stack.Screen name='MyMapView' component={MyMapView} options={{ headerShown: true }}/>
</Stack.Navigator>
</NavigationContainer>
);
}
};
export default withAuthenticator(App, {
includeGreetings: true,
});