63 lines
1.9 KiB
TypeScript
63 lines
1.9 KiB
TypeScript
import { getScreenFocusListenerObj } from '@components/utlis/commonFunctions';
|
|
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
import CompletedCase from '@screens/allCases/CompletedCase';
|
|
import { DEFAULT_SCREEN_OPTIONS } from '@screens/auth/ProtectedRouter';
|
|
import { RequestDetail, ViewRequestHistory } from '@screens/cosmosSupport';
|
|
import React from 'react';
|
|
import { StyleSheet } from 'react-native';
|
|
import Profile from '.';
|
|
|
|
|
|
const Stack = createNativeStackNavigator();
|
|
|
|
|
|
export enum ProfileScreenStackEnum {
|
|
PROFILE = 'profile',
|
|
COMPLETED_CASES = 'completedCases',
|
|
TELE_SUPPORT = 'teleSupport',
|
|
PROFILE_TICKET_DETAIL = 'profileTicketDetail',
|
|
|
|
}
|
|
|
|
|
|
const ProfileStack = () => {
|
|
|
|
return (
|
|
<Stack.Navigator
|
|
screenListeners={getScreenFocusListenerObj}
|
|
screenOptions={
|
|
DEFAULT_SCREEN_OPTIONS
|
|
}
|
|
initialRouteName={ProfileScreenStackEnum.PROFILE}
|
|
>
|
|
<Stack.Screen
|
|
name={ProfileScreenStackEnum.PROFILE}
|
|
component={Profile}
|
|
|
|
|
|
/>
|
|
<Stack.Screen
|
|
name={ProfileScreenStackEnum.COMPLETED_CASES}
|
|
component={CompletedCase}
|
|
/>
|
|
<Stack.Group
|
|
navigationKey={ProfileScreenStackEnum.TELE_SUPPORT}
|
|
>
|
|
<Stack.Screen
|
|
name={ProfileScreenStackEnum.TELE_SUPPORT}
|
|
// @ts-ignore
|
|
component={ViewRequestHistory}
|
|
/>
|
|
<Stack.Screen
|
|
name={ProfileScreenStackEnum.PROFILE_TICKET_DETAIL}
|
|
// @ts-ignore
|
|
component={RequestDetail}
|
|
/>
|
|
</Stack.Group>
|
|
</Stack.Navigator>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({})
|
|
|
|
export default ProfileStack |