import React, { useState } from 'react'; import { View, StyleSheet, Text, FlatList } from 'react-native'; import type { NativeStackScreenProps } from '@react-navigation/native-stack'; import Ionicons from '@react-native-vector-icons/ionicons'; import type { ServicesStackParamList } from '../../../navigation/types'; import { ScreenShell, Card, Button } from '../../../components'; import { AppModal } from '../../../components/Modal'; import { useToast } from '../../../hooks/useToast'; import { useTheme, fontFamily } from '../../../theme'; type Props = NativeStackScreenProps; export default function CertificateListScreen({ route }: Props) { const { title, category } = route.params; const theme = useTheme(); const toast = useToast(); const [viewingDoc, setViewingDoc] = useState(null); const mockDocs = Array.from({ length: 4 }).map((_, i) => ({ id: String(i), name: `FY ${26 - i}-${27 - i} ${title}`, date: `Generated Apr ${2026 - i}`, size: `${(1.2 + i * 0.3).toFixed(1)} MB`, })); const handleDownload = (docName: string) => { toast('Download started', 'success', `${docName} is being saved securely to your device.`); }; return ( item.id} contentContainerStyle={{ gap: 16, paddingBottom: 24 }} showsVerticalScrollIndicator={false} renderItem={({ item }) => ( {item.name} {item.date} • {item.size}