aboutsummaryrefslogtreecommitdiff
path: root/src/routes/onboarding/OnboardingStack.tsx
blob: 7ff00271fcc431b398fb77b3006bbeffe5246b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import {createStackNavigator} from '@react-navigation/stack';
import {
  CategorySelectionScreenType,
  MomentCategoryType,
  TaggPopupType,
  UserType,
  VerificationScreenType,
} from '../../types';

export type OnboardingStackParams = {
  WelcomeScreen: undefined;
  Login: undefined;
  PasswordResetRequest: undefined;
  PasswordReset: {
    value: string;
  };
  InvitationCodeVerification: undefined;
  RegistrationOne: undefined;
  RegistrationTwo: {phone: string};
  RegistrationThree: {
    firstName: string;
    lastName: string;
    phone: string;
    email: string;
  };
  Checkpoint: {username: string; userId: string};
  Verification: {id: string; screenType: VerificationScreenType};
  ProfileOnboarding: {username: string; userId: string};
  SocialMedia: {username: string; userId: string};
  CategorySelection: {
    categories: Record<MomentCategoryType, boolean>;
    screenType: CategorySelectionScreenType;
    user: UserType;
  };
  TaggPopup: {
    popupProps: TaggPopupType;
  };
};

export const OnboardingStack = createStackNavigator<OnboardingStackParams>();