38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
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 BottomTabParamList = {
|
|
[RouteNames.Dashboard]: undefined;
|
|
[RouteNames.Earnings]: undefined;
|
|
[RouteNames.Jobs]: undefined;
|
|
[RouteNames.Inbox]: undefined;
|
|
[RouteNames.Profile]: undefined;
|
|
};
|
|
|
|
export type AppStackParamList = {
|
|
[RouteNames.BottomTabs]: NavigatorScreenParams<BottomTabParamList>;
|
|
[RouteNames.NewJobRequest]: undefined;
|
|
[RouteNames.OrderAccepted]: undefined;
|
|
[RouteNames.ArrivedAtStore]: undefined;
|
|
[RouteNames.ConfirmPickup]: undefined;
|
|
[RouteNames.OrderPickedUp]: undefined;
|
|
[RouteNames.LiveTracking]: undefined;
|
|
[RouteNames.ArrivedAtCustomer]: undefined;
|
|
[RouteNames.DeliverOrder]: undefined;
|
|
[RouteNames.DeliveryCompleted]: undefined;
|
|
[RouteNames.Documents]: undefined;
|
|
};
|
|
|
|
export type RootStackParamList = {
|
|
Auth: NavigatorScreenParams<AuthStackParamList>;
|
|
App: NavigatorScreenParams<AppStackParamList>;
|
|
};
|