import { Control, ControllerFieldState, Path, RegisterOptions, UseFormStateReturn, ControllerRenderProps } from "react-hook-form"; import { TextInputProps } from "react-native"; export type FormControlsProps = { name: Path; title: string; rules?: RegisterOptions; transformer?: (value: string) => any; } & TextInputProps; export type FormControlsCustom = { [a in keyof T]: FormControlsProps; }; type FormControlProps = { control: Control; }; type RenderProps = ControllerFieldState & UseFormStateReturn; export type FormControlPropsTotal = { renderMethods: RenderProps; } & { props: Omit, "rules" | "title"> & { id: string; } & ControllerRenderProps>; }; export type FormControlComponent = FormControlProps & FormControlsProps; export {};