import React from 'react'; import { View, Text, StyleSheet, ScrollView, Pressable } from 'react-native'; import { NativeStackScreenProps } from '@react-navigation/native-stack'; import Ionicons from '@react-native-vector-icons/ionicons'; import Animated, { FadeIn, SlideInUp } from 'react-native-reanimated'; import { ScreenShell, Button } from '../../../components'; import { useTheme, fontFamily } from '../../../theme'; import type { AgentCollectionsStackParamList } from '../navigation/agentNavigationTypes'; import { formatFullCurrency, formatDateTime } from '../utils/agentFormatters'; // Since this is a mock receipt screen, we will just simulate receipt data based on the entry ID // In a real app, we would fetch the receipt details from the API type Props = NativeStackScreenProps; export default function CollectionReceiptScreen({ route, navigation }: Props) { const { entryId } = route.params; const theme = useTheme(); const receipt = { receiptNo: entryId, customerName: 'Customer', accountNumber: 'CBS00000000', amount: 500, date: new Date().toISOString(), mode: 'cash', agentName: 'Rajesh Kumar', agentCode: 'AGT-2024-0147', }; const InfoRow = ({ label, value, strong = false }: { label: string, value: string, strong?: boolean }) => ( {label} {value} ); return ( Payment Successful {formatFullCurrency(receipt.amount)} Share PDF Print