Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 18 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import * as React from 'react'; |
||
2 | import { NavigationContainer } from '@react-navigation/native'; |
||
3 | import { createNativeStackNavigator } from '@react-navigation/native-stack'; |
||
4 | import Map from './Map'; |
||
5 | import LoginHome from './auth/LoginHome'; |
||
6 | |||
7 | const Stack = createNativeStackNavigator(); |
||
8 | |||
9 | export default function mapStack({API_KEY, position, setPosition, token, navigation}) { |
||
10 | return ( |
||
11 | <Stack.Navigator initialRouteName="MapHome" screenOptions={{headerShown: false}}> |
||
12 | <Stack.Screen name="MapHome"> |
||
13 | {(screenProps) => <Map {...screenProps} token={token} API_KEY={API_KEY} position={position} setPosition={setPosition} />} |
||
14 | </Stack.Screen> |
||
15 | </Stack.Navigator> |
||
16 | ); |
||
17 | } |
||
18 | |||
19 | |||
20 |