forked from michalchudziak/react-native-geolocation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
32 lines (27 loc) · 964 Bytes
/
index.tsx
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
/**
* Copyright (c) React Native Community
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import { AppRegistry } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { name as appName } from './app.json';
import * as Screens from './src/screens';
const Stack = createNativeStackNavigator();
function ExampleApp() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={Screens.HomeScreen} />
<Stack.Screen name="Examples" component={Screens.ExamplesScreen} />
<Stack.Screen name="TestCases" component={Screens.TestCasesScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
AppRegistry.registerComponent(appName, () => ExampleApp);