import type { PaymentStackScreenComponentProps } from "@/navigations/Types"; import BalanceContainer from "@components/BalanceContainer"; import BeasyLogoIcon from "@components/BeasyLogoIcon"; import NotificationIconButton from "@components/NotificationIconButton"; import PaymentOption from "@components/PaymentOption"; import BackgroundGreenWhiteContentArea from "@components/backgrounds/BackgroundGreenWhiteContentArea"; import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; import { Dimensions } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; const HomePageWithPaymentOptions: PaymentStackScreenComponentProps<"homePageWithPaymentOptions"> = ({ navigation }) => { return ( Méthode de paiement navigation.navigate("paymentAmountInputScreen") } paymentMethod={"OrangeMoney"} /> navigation.navigate("paymentAmountInputScreen") } paymentMethod={"MtnMoney"} /> navigation.navigate("paymentAmountInputScreen") } paymentMethod={"MoovMoney"} /> navigation.navigate("paymentAmountInputScreen") } paymentMethod={"WaveMoney"} /> navigation.navigate("paymentAmountInputScreen")} paymentMethod={"VisaCard"} /> ); }; export default HomePageWithPaymentOptions; const screenWidth = Dimensions.get("window").width; const paymentOptionCardWidth = screenWidth / 2 - 30; const paymentOptionCardHeight = paymentOptionCardWidth * 0.65; const PaymentOptionContainer = ({ children }: { children: React.ReactNode }) => { return ( {children} ); };