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 = {
homePageWithPaymentOptions: undefined;
numberAndOtpForPaymentScreen: undefined;
paymentAmountInputScreen: undefined;
homeUserNotLoggedIn: undefined;
userLoginScreen: undefined;
};
export type PaymentStackScreenProps<T extends keyof PaymentStackParamList> = NativeStackScreenProps<
......@@ -15,3 +17,15 @@ export type PaymentStackScreenProps<T extends keyof PaymentStackParamList> = Nat
export type PaymentStackScreenComponentProps<T extends keyof PaymentStackParamList> = React.FC<
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