Form

June 14, 2019 ยท View on GitHub

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>