UNPKG

@ffsm/native-ui

Version:

UI Components for React Native

20 lines (19 loc) 846 B
import { ReactNode } from 'react'; import { StyleProp, TextStyle, View, ViewStyle } from 'react-native'; import { InputLabelProps, InputLabelAdditionalProps } from '../input-label'; export interface InputWrapperAdditionalProps extends InputLabelAdditionalProps { label?: ReactNode; labelInnerProps?: InputLabelProps['innerProps']; error?: string; helperText?: string; } export interface InputWrapperProps extends InputWrapperAdditionalProps, Omit<InputLabelProps, 'innerProps'> { styles?: InputLabelProps['styles'] & { label?: StyleProp<ViewStyle>; error?: StyleProp<TextStyle>; helperText?: StyleProp<TextStyle>; }; } export declare const InputWrapper: import("react").ForwardRefExoticComponent<InputWrapperProps & { children?: ReactNode | undefined; } & import("react").RefAttributes<View>>;