import { Pressable, Text, View } from 'react-native'; export type RadioOption = { description?: string; label: string; value: T; }; export const RadioList = ({ label, onChange, options, value, }: { label: string; onChange: (value: T) => void; options: RadioOption[]; value: T; }) => ( {label} {options.map((option) => { const active = option.value === value; return ( onChange(option.value)} > {option.label} {option.description ? ( {option.description} ) : null} ); })} );