UNPKG

react-web-native-sketch

Version:

[TODO: We need an overview of how this can be used via npm vs as a local package]

23 lines (22 loc) 694 B
import * as React from 'react'; import { StyleRules } from '../../utils/theme.types'; import { FieldDefinition, FieldReduxData } from './FormComponents.types'; export interface FormItemProps { handleFieldChange?: (field: string, fieldReduxData: FieldReduxData, currentRawValue?: any) => void; fieldReduxData?: FieldReduxData; fieldDefinition: FieldDefinition; error?: string; input: { value: any; error?: string; onChange: Function; onBlur?: Function; }; meta?: { error?: string; touched?: boolean; }; style?: StyleRules; onTouch?: any; } export declare const FormItem: React.ComponentType<FormItemProps>;