import { RadioButton, Subheading, TouchableRipple } from 'react-native-paper' import * as React from 'react' import { View } from 'react-native' import { FieldProps } from 'formik' interface IProps extends FieldProps { label: string id: string } export const InputRadio: React.FunctionComponent = (props) => { const { field, label, form, id, } = props const { setFieldValue, } = form const { name, value, } = field return ( <> setFieldValue(name, id)}> setFieldValue(name, id)} /> {label} ) }