diff --git a/src/navigations/PaymentStackNavigation.tsx b/src/navigations/PaymentStackNavigation.tsx new file mode 100644 index 0000000..5bc4ba4 --- /dev/null +++ b/src/navigations/PaymentStackNavigation.tsx @@ -0,0 +1,28 @@ +import { createNativeStackNavigator } from "@react-navigation/native-stack"; +import HomePageWithPaymentOptions from "@screens/HomePageWithPaymentOptions"; +import NumberAndOtpForPaymentScreen from "@screens/NumberAndOtpForPaymentScreen"; +import PaymentAmountInputScreen from "@screens/PaymentAmountInputScreen"; +import type { PaymentStackParamList } from "./Types"; + +const Stack = createNativeStackNavigator(); + +const PaymentStackNavigator = () => { + return ( + + + + + + ); +}; + +export default PaymentStackNavigator; diff --git a/src/navigations/Types.ts b/src/navigations/Types.ts new file mode 100644 index 0000000..084a994 --- /dev/null +++ b/src/navigations/Types.ts @@ -0,0 +1,17 @@ +import type { NativeStackScreenProps } from "@react-navigation/native-stack"; + +export type PaymentStackParamList = { + homePageWithPaymentOptions: undefined; + numberAndOtpForPaymentScreen: undefined; + paymentAmountInputScreen: undefined; +}; + +export type PaymentStackScreenProps = NativeStackScreenProps< + PaymentStackParamList, + T, + "PaymentStackParamList" +>; + +export type PaymentStackScreenComponentProps = React.FC< + PaymentStackScreenProps +>;