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