UNPKG

react-web-native-sketch

Version:

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

31 lines (30 loc) 805 B
import * as React from 'react'; import { FieldDefinition } from './FormComponents.types'; export declare type FormErrorChecker = (values: { [key: string]: any; }) => (undefined | { form: string; }); export interface FormClasses { formContainer: any; formField: any; } export interface FormProps { handleSubmit?: any; fieldDefinitions: Array<FieldDefinition>; form: string; containerStyle?: any; allRequired?: boolean; alwaysTouched?: boolean; destroyOnUnmount?: boolean; initialValues?: { [key: string]: any; } | null; validate?: FormErrorChecker; enableReinitialize?: boolean; fields?: any; keepDirty?: boolean; noShrink?: boolean; formClasses?: FormClasses; } export declare const Form: React.ComponentType<FormProps>;