Blame · Line-by-line history
AuthNavigator.tsx
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| 9b18281 | 1 | import React from 'react'; |
| 2 | import { createNativeStackNavigator } from '@react-navigation/native-stack'; | |
| 3 | import { LoginScreen } from '../screens/LoginScreen'; | |
| 4 | import { colors } from '../theme/colors'; | |
| 5 | ||
| 6 | export type AuthStackParamList = { | |
| 7 | Login: undefined; | |
| 8 | }; | |
| 9 | ||
| 10 | const Stack = createNativeStackNavigator<AuthStackParamList>(); | |
| 11 | ||
| 12 | export function AuthNavigator(): React.ReactElement { | |
| 13 | return ( | |
| 14 | <Stack.Navigator | |
| 15 | screenOptions={{ | |
| 16 | headerShown: false, | |
| 17 | contentStyle: { backgroundColor: colors.bg }, | |
| 18 | }} | |
| 19 | > | |
| 20 | <Stack.Screen name="Login" component={LoginScreen} /> | |
| 21 | </Stack.Navigator> | |
| 22 | ); | |
| 23 | } |