-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
38 lines (36 loc) · 1.37 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
import { NavigationContainer } from '@react-navigation/native'
import { createStackNavigator } from '@react-navigation/stack'
import React from 'react'
import 'react-native-gesture-handler'
import { SafeAreaProvider } from 'react-native-safe-area-context'
import { CityInput } from './components/CityInput'
import Home from './components/Home'
import MapView from './components/MapView'
import ResultsByAddress from './components/ResultsByAddress'
import ResultsByLocation from './components/ResultsByLocation'
import { StreetInput } from './components/StreetInput'
export default class App extends React.Component {
render() {
return (
<SafeAreaProvider>
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false,
}}>
<Stack.Screen name='Home' component={Home} />
<Stack.Screen name='Location' component={ResultsByLocation} />
<Stack.Screen name='MapView' component={MapView} />
<Stack.Screen name='CityInput' component={CityInput} />
<Stack.Screen name='StreetInput' component={StreetInput} />
<Stack.Screen
name='ResultsByAddress'
component={ResultsByAddress}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
)
}
}
const Stack = createStackNavigator()