NeoScan_Physician/app/modules/Auth/navigation/AuthNavigator.tsx
2025-07-24 20:06:12 +05:30

58 lines
1.6 KiB
TypeScript

/*
* File: AuthNavigator.tsx
* Description: Stack navigator for Auth module
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/
import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { LoginScreen, SetupBiometricScreen } from '../screens';
import { Colors } from '../../../../shared/src/theme';
import SignUpScreen from '../screens/SignUpScreen';
export type AuthStackParamList = {
Login: undefined;
SetupBiometric: undefined;
SignUpScreen:undefined;
};
const Stack = createNativeStackNavigator<AuthStackParamList>();
/**
* AuthNavigator sets up stack navigation for Auth module
*/
const AuthNavigator: React.FC = () => (
<Stack.Navigator
initialRouteName="Login"
screenOptions={{
headerStyle: { backgroundColor: Colors.primary },
headerTintColor: Colors.background,
headerTitleStyle: { fontWeight: 'bold' },
}}
>
<Stack.Screen
name="Login"
component={LoginScreen}
options={{ title: 'Login',headerShown:false }}
/>
<Stack.Screen
name="SetupBiometric"
component={SetupBiometricScreen}
options={{ title: 'Setup Biometric' ,headerShown:false}}
/>
<Stack.Screen
name="SignUpScreen"
component={SignUpScreen}
options={{ title: 'Setup Biometric' ,headerShown:false}}
/>
</Stack.Navigator>
);
export default AuthNavigator;
/*
* End of File: AuthNavigator.tsx
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/