import type { ComponentProps, ReactNode } from 'react'; import { Pressable, Text, View } from 'react-native'; export const ListRow = ({ title, subtitle, meta, children, onPress, ...props }: { title: string; subtitle?: string; meta?: string; children?: ReactNode; onPress?: () => void; } & Omit, 'children'>) => ( {title} {subtitle ? ( {subtitle} ) : null} {meta ? ( {meta} ) : null} {children ? {children} : null} );