// BirthdayItem.tsx import { StyleSheet, Text, View } from "react-native"; interface BirthdayItemProps { name: string; date: string; age?: number; } export function BirthdayItem({ name, date, age }: BirthdayItemProps) { return ( {name} {age && Age: {age}} ); } const styles = StyleSheet.create({ itemContainer: { padding: 15, borderRadius: 8, backgroundColor: "#f0f0f0", elevation: 2, marginBottom: 10, }, name: { fontSize: 16, fontWeight: "bold", }, date: { fontSize: 14, }, age: { fontSize: 12, marginTop: 5, }, });