import { TouchableOpacity, Text } from 'react-native'; import React, { ComponentType } from 'react'; import { useTheme } from './ThemeContext'; import Icon from './Icon'; const noop = () => undefined; export type Props = { readonly label?: string; readonly checked?: boolean; readonly onPress?: () => void; }; const Radio: ComponentType = ({ label = '', checked = false, onPress = noop }: Props) => { const theme = useTheme(); return ( {checked ? ( ) : ( )} {label} ); }; export default Radio;