Commit e9206a1d by G

sending the params paymentType when navigating to the Amount screen and logging it

parent e79dedad
...@@ -72,7 +72,12 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith ...@@ -72,7 +72,12 @@ const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWith
<PaymentOptionContainer key={paymentType.id}> <PaymentOptionContainer key={paymentType.id}>
<PaymentOption <PaymentOption
onPress={() => onPress={() =>
navigation.navigate("paymentAmountInputScreen") navigation.navigate(
"paymentAmountInputScreen",
{
paymentType: paymentType.code,
},
)
} }
paymentMethod={paymentType.code} paymentMethod={paymentType.code}
/> />
......
...@@ -9,8 +9,13 @@ import Box from "@components/bases/Box"; ...@@ -9,8 +9,13 @@ import Box from "@components/bases/Box";
import { SafeAreaView } from "react-native-safe-area-context"; import { SafeAreaView } from "react-native-safe-area-context";
const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountInputScreen"> = ({ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountInputScreen"> = ({
route,
navigation, navigation,
}) => { }) => {
const { paymentType } = route.params;
console.log("Payment type :: {}", paymentType);
return ( return (
<BackgroundGreenWhiteContentArea> <BackgroundGreenWhiteContentArea>
<SafeAreaView> <SafeAreaView>
......
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