import React from 'react'; import { ScrollView, View, Text, StyleSheet } from 'react-native'; import { Ux4gResultList } from '../components/result-list/ResultList'; import { useUx4gTheme } from '../theme/Ux4gThemeContext'; import { UX4GColors } from '../foundation/colors'; import { Ux4gIcons } from '../foundation/icons'; export const ResultListShowcase: React.FC = () => { const theme = useUx4gTheme(); const colors = theme.colors; const cardStyle = [ styles.card, { backgroundColor: theme.isDark ? UX4GColors.neutral900 : UX4GColors.neutral0, borderColor: theme.isDark ? UX4GColors.neutral800 : UX4GColors.neutral200, shadowColor: UX4GColors.neutral1000black, shadowOffset: { width: 0, height: 2 }, shadowOpacity: theme.isDark ? 0.2 : 0.02, shadowRadius: 6, elevation: 2, }, ]; const titleStyle = [ styles.sectionTitle, { color: theme.isDark ? '#F4F4F5' : '#18181B' }, ]; return ( 📋 Result List Expandable list items for search results and application status. {}} showBottomDivider={false} details={[ { label: 'Applicant', value: 'Ravi Kumar' }, { label: 'Date', value: '12 May 2025' }, { label: 'Sanctioned Amount', value: '₹1,20,000', isBold: true }, ]} /> ), }, { text: 'Under Review', textColor: UX4GColors.orange700 }, ]} actionButtonText="Track Status" onActionPressed={() => {}} showBottomDivider={false} details={[ { label: 'Reference Number', value: 'INC-2026-MH-04127' }, { label: 'Last Updated Date', value: '10 Apr 2026' }, { label: 'Assigned Officer', value: 'Rahul Sharma' }, { label: 'Department', value: 'Revenue Department' }, ]} /> {}} showBottomDivider={false} details={[ { label: 'Applicant', value: 'Sunita Sharma' }, { label: 'Application ID', value: 'DL-99201-DL' }, { label: 'Pending Stage', value: 'Biometrics Verification' }, ]} /> {}} initialExpanded={false} showBottomDivider={false} details={[ { label: 'Rejection Reason', value: 'Address Proof Mismatch', isBold: true }, { label: 'Applied Date', value: '05 Feb 2026' }, ]} expandedChild={ Need Help? Register grievance } /> ); }; const styles = StyleSheet.create({ container: { flex: 1, }, contentContainer: { padding: 16, paddingBottom: 40, }, header: { marginBottom: 16, }, title: { fontSize: 22, fontWeight: '800', marginBottom: 6, }, subText: { fontSize: 14, lineHeight: 20, }, card: { borderWidth: 1, borderRadius: 16, padding: 16, marginBottom: 16, }, sectionTitle: { fontSize: 16, fontWeight: '700', marginBottom: 4, }, stackGroup: { // Removed gap so it acts strictly like the card wrapper for the list }, });