NeoScan_Physician/app/modules/Profile/navigation/ProfileNavigator.tsx

57 lines
1.5 KiB
TypeScript

/*
* File: ProfileNavigator.tsx
* Description: Stack navigator for Profile module
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { ProfileScreen, SettingsScreen, PreferencesScreen } from '../screens';
import { Colors } from 'shared/src/theme';
export type ProfileStackParamList = {
Profile: undefined;
Settings: undefined;
Preferences: undefined;
};
const Stack = createStackNavigator<ProfileStackParamList>();
/**
* ProfileNavigator sets up stack navigation for Profile module
*/
const ProfileNavigator: React.FC = () => (
<Stack.Navigator
initialRouteName="Profile"
screenOptions={{
headerStyle: { backgroundColor: Colors.primary },
headerTintColor: Colors.background,
headerTitleStyle: { fontWeight: 'bold' },
}}
>
<Stack.Screen
name="Profile"
component={ProfileScreen}
options={{ title: 'Profile' }}
/>
<Stack.Screen
name="Settings"
component={SettingsScreen}
options={{ title: 'Settings' }}
/>
<Stack.Screen
name="Preferences"
component={PreferencesScreen}
options={{ title: 'Preferences' }}
/>
</Stack.Navigator>
);
export default ProfileNavigator;
/*
* End of File: ProfileNavigator.tsx
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/