Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 670 Bytes

File metadata and controls

27 lines (19 loc) · 670 Bytes

ErrorTip

Component for notify user about errors.

ErrorTip should be wrapped into FormGroup

Public interface

Props

ErrorTip contains Text component from react-native lib. All props for Text are valid for ErrorTip.

If error not exist, ErrorTip will not render Text

Example

<Form 
    onSubmit={async (values) => await someRequest(values)}
    validator={new SchemaValidator(ExampleSchema)}
    errorParser={(error) => myCustomParser(error)}
>
    <FormGroup attribute="surname" >
        <ErrorTip />
    </FormGroup>
</Form>