59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
import React from "react";
|
|
import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
|
|
import { useRouter } from "expo-router";
|
|
|
|
const PaymentConfirmationScreen = () => {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.title}>Payment Successful!</Text>
|
|
<Text style={styles.message}>
|
|
Thank you for your payment. Your transaction has been completed.
|
|
</Text>
|
|
|
|
<TouchableOpacity
|
|
style={styles.button}
|
|
// onPress={() => router.push("/dashboard")} // Or wherever you want to go
|
|
>
|
|
<Text style={styles.buttonText}>Go to Dashboard</Text>
|
|
</TouchableOpacity>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
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",
|
|
},
|
|
});
|