Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 777 Bytes

Form.md

File metadata and controls

23 lines (16 loc) · 777 Bytes

Form

Root component that provide context to the nested children.

Public interface

Props

Form contains View component from react-native lib. All props for View are valid for Form.

Also Form is representing FormProvider from react-formawesome-core package. All props for FormProvider are valid for Form.

Example

<Form 
    onSubmit={async (values) => await someRequest(values)}
    validator={new SchemaValidator(ExampleSchema)}
    errorParser={(error) => myCustomParser(error)}
>
    ...
</Form>