-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathApp.tsx
More file actions
130 lines (127 loc) · 4.33 KB
/
App.tsx
File metadata and controls
130 lines (127 loc) · 4.33 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import React from 'react';
import {
DarkTheme,
DefaultTheme,
NavigationContainer,
} from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './screens/HomeScreen';
import BasicMapScreen from './screens/BasicMapScreen';
import MarkersScreen from './screens/MarkersScreen';
import PolygonsScreen from './screens/PolygonsScreen';
import PolylinesScreen from './screens/PolylinesScreen';
import CirclesScreen from './screens/CirclesScreen';
import HeatmapScreen from './screens/HeatmapScreen';
import KmlLayerScreen from './screens/KmlLayerScreen';
import LocationScreen from './screens/LocationScreen';
import CustomStyleScreen from './screens/CustomStyleScreen';
import StressTestScreen from './screens/StressTestScreen';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { useColorScheme } from 'react-native';
import BlankScreen from './screens/BlankScreen';
import IndoorLevelMapScreen from './screens/IndoorLevelMapScreen';
import CameraTestScreen from './screens/CameraTestScreen';
import type { RootStackParamList } from './types/navigation';
import SnapshotTestScreen from './screens/SnaptshotTestScreen';
import ClusteringScreen from './screens/ClsuteringScreen';
const Stack = createStackNavigator<RootStackParamList>();
export default function App() {
const scheme = useColorScheme();
return (
<GestureHandlerRootView>
<NavigationContainer theme={scheme === 'dark' ? DarkTheme : DefaultTheme}>
<Stack.Navigator
initialRouteName="Home"
screenOptions={({ theme }) => ({
headerShown: true,
headerTitleAlign: 'center',
headerStyle: { backgroundColor: theme.colors.card },
headerTintColor: theme.colors.text,
contentStyle: { backgroundColor: theme.colors.background },
})}
>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{ title: 'Google Maps Examples' }}
/>
<Stack.Screen
name="Blank"
component={BlankScreen}
options={{ title: 'Blank Screen' }}
/>
<Stack.Screen
name="BasicMap"
component={BasicMapScreen}
options={{ title: 'Basic Map' }}
/>
<Stack.Screen
name="Markers"
component={MarkersScreen}
options={{ title: 'Markers' }}
/>
<Stack.Screen
name="Polygons"
component={PolygonsScreen}
options={{ title: 'Polygons' }}
/>
<Stack.Screen
name="Polylines"
component={PolylinesScreen}
options={{ title: 'Polylines' }}
/>
<Stack.Screen
name="Circles"
component={CirclesScreen}
options={{ title: 'Circles' }}
/>
<Stack.Screen
name="Heatmap"
component={HeatmapScreen}
options={{ title: 'Heatmap' }}
/>
<Stack.Screen
name="KmlLayer"
component={KmlLayerScreen}
options={{ title: 'KML Layer' }}
/>
<Stack.Screen
name="Location"
component={LocationScreen}
options={{ title: 'Location & Permissions' }}
/>
<Stack.Screen
name="CustomStyle"
component={CustomStyleScreen}
options={{ title: 'Custom Map Style' }}
/>
<Stack.Screen
name="IndoorLevelMap"
component={IndoorLevelMapScreen}
options={{ title: 'Indoor level map' }}
/>
<Stack.Screen
name="Camera"
component={CameraTestScreen}
options={{ title: 'Camera test' }}
/>
<Stack.Screen
name="Snapshot"
component={SnapshotTestScreen}
options={{ title: 'Snapshot test' }}
/>
<Stack.Screen
name="Clustering"
component={ClusteringScreen}
options={{ title: 'Clustering test' }}
/>
<Stack.Screen
name="Stress"
component={StressTestScreen}
options={{ title: 'Stress test' }}
/>
</Stack.Navigator>
</NavigationContainer>
</GestureHandlerRootView>
);
}