UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

26 lines (25 loc) 846 B
/// <reference types="react" /> import { TextStyle } from 'react-native'; import { FieldStateProps } from './useFieldState'; export interface ValidationMessageProps { /** * Should support showing validation error message */ enableErrors?: boolean; /** * The validation message to display when field is invalid (depends on validate) */ validationMessage?: string | string[]; /** * Custom style for the validation message */ validationMessageStyle?: TextStyle; retainSpace?: boolean; validate?: FieldStateProps['validate']; testID?: string; } declare const ValidationMessage: { ({ validationMessage, enableErrors, validationMessageStyle, retainSpace, validate, testID }: ValidationMessageProps): JSX.Element | null; displayName: string; }; export default ValidationMessage;