import React from "react"; import { View, Text, StyleSheet, TouchableOpacity } from "react-native"; import { useRouter } from "expo-router"; const PaymentConfirmationScreen = () => { const router = useRouter(); return ( Payment Successful! Thank you for your payment. Your transaction has been completed. router.push("/dashboard")} // Or wherever you want to go > Go to Dashboard ); }; export default PaymentConfirmationScreen; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", padding: 24, backgroundColor: "#f0f4f7", }, title: { fontSize: 28, fontWeight: "bold", marginBottom: 12, color: "#2e7d32", }, message: { fontSize: 16, textAlign: "center", marginBottom: 30, color: "#555", }, button: { backgroundColor: "#2e7d32", paddingVertical: 14, paddingHorizontal: 30, borderRadius: 8, }, buttonText: { color: "white", fontSize: 16, fontWeight: "600", }, });