import { NavigatorScreenParams } from '@react-navigation/native'; import { RouteNames } from '@utils/constants'; export type AuthStackParamList = { [RouteNames.Login]: undefined; [RouteNames.Otp]: { phone: string }; // [RouteNames.SetLocation]: undefined; // [RouteNames.CompleteProfile]: undefined; // [RouteNames.OnboardingComplete]: undefined; }; export type OnBoardingParamList = { [RouteNames.SetLocation]: undefined; [RouteNames.CompleteProfile]: undefined; [RouteNames.Kyc]: undefined; [RouteNames.OnboardingComplete]: undefined; }; export type BottomTabParamList = { [RouteNames.Dashboard]: undefined; [RouteNames.Earnings]: undefined; [RouteNames.Jobs]: undefined; [RouteNames.Inbox]: undefined; [RouteNames.Profile]: undefined; }; export type AppStackParamList = { [RouteNames.BottomTabs]: NavigatorScreenParams; [RouteNames.NewJobRequest]: undefined; [RouteNames.OrderAccepted]: undefined; [RouteNames.ArrivedAtStore]: { jobId: string }; [RouteNames.ConfirmPickup]: undefined; [RouteNames.OrderPickedUp]: undefined; [RouteNames.LiveTracking]: undefined; [RouteNames.ArrivedAtCustomer]: { jobId: string }; [RouteNames.DeliverOrder]: undefined; [RouteNames.DeliveryCompleted]: undefined; [RouteNames.Documents]: undefined; // [RouteNames.JobDetails]: { jobId: string }; }; export type RootStackParamList = { Auth: NavigatorScreenParams; App: NavigatorScreenParams; OnBoarding: NavigatorScreenParams; };