Commit 6e3a43c6 by G

add types for navigation system when user is yet to be logged in.

parent 0595f775
...@@ -4,6 +4,8 @@ export type PaymentStackParamList = { ...@@ -4,6 +4,8 @@ export type PaymentStackParamList = {
homePageWithPaymentOptions: undefined; homePageWithPaymentOptions: undefined;
numberAndOtpForPaymentScreen: undefined; numberAndOtpForPaymentScreen: undefined;
paymentAmountInputScreen: undefined; paymentAmountInputScreen: undefined;
homeUserNotLoggedIn: undefined;
userLoginScreen: undefined;
}; };
export type PaymentStackScreenProps<T extends keyof PaymentStackParamList> = NativeStackScreenProps< export type PaymentStackScreenProps<T extends keyof PaymentStackParamList> = NativeStackScreenProps<
...@@ -15,3 +17,15 @@ export type PaymentStackScreenProps<T extends keyof PaymentStackParamList> = Nat ...@@ -15,3 +17,15 @@ export type PaymentStackScreenProps<T extends keyof PaymentStackParamList> = Nat
export type PaymentStackScreenComponentProps<T extends keyof PaymentStackParamList> = React.FC< export type PaymentStackScreenComponentProps<T extends keyof PaymentStackParamList> = React.FC<
PaymentStackScreenProps<T> PaymentStackScreenProps<T>
>; >;
export type UnloggedUserStackParamList = {
homeUserNotLoggedIn: undefined;
userLoginScreen: undefined;
bottomTabs: undefined;
};
export type UnloggedUserStackScreenProps<T extends keyof UnloggedUserStackParamList> =
NativeStackScreenProps<UnloggedUserStackParamList, T, "UnloggedUserStackParamList">;
export type UnloggedUserStackScreenComponentProps<T extends keyof UnloggedUserStackParamList> =
React.FC<UnloggedUserStackScreenProps<T>>;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment