Root component that provide context to the nested children.
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
.
<Form
onSubmit={async (values) => await someRequest(values)}
validator={new SchemaValidator(ExampleSchema)}
errorParser={(error) => myCustomParser(error)}
>
...
</Form>