import { View, Text, TouchableOpacity } from 'react-native' import React from 'react' import TabBar from '../themes/TabBar' import { ChevronLeftIcon } from 'react-native-heroicons/outline' import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-native-responsive-screen'; import { CheckIcon } from 'react-native-heroicons/solid'; import { useNavigation } from '@react-navigation/native'; export default function PaymentSuccess() { const navigation = useNavigation() const handleBack = () => { // Navigate to Main screen instead of going back navigation.goBack(); }; const handleViewOrder = () => { navigation.navigate('Order'); }; return ( } titleStyle={{ color: "black", fontWeight: "bold", fontSize: 20 }} prefixStyle={{ backgroundColor: "transparent" }} suffixStyle={{ backgroundColor: "white", borderWidth: 1, borderColor: "black" }} containerStyle="" suffixAction={handleBack} /> Order Successful! Thank you for your order. Your order has been placed successfully and will be processed soon. View Order ) }