declare class UnderlineTextInput extends React.Component { static getDerivedStateFromProps(nextProps: any, prevState: any): { value: any; } | null; constructor(props: any); state: { value: any; focused: boolean; validated: boolean; }; componentDidMount(): void; componentDidUpdate(nextProps: any, nextState: any): void; /** * if cannot click on first click * add keyboardShouldPersistTaps="handled" to scrollView of container */ clearText: () => void; setText: (text: any) => void; getText: (text: any) => any; onChangeText: (value?: string) => void; /** * validate text input */ validateText: (text: any) => void; onFocus: () => void; focus: () => void; onBlur: () => void; onRightIconPress: () => void; underlineColor: (error: any, focused: any) => string; render(): JSX.Element; textInput: TextInput | null | undefined; } declare namespace UnderlineTextInput { namespace propTypes { const clearOnRightPress: PropTypes.Requireable; const errorMessage: PropTypes.Requireable>; const errorMessageStyle: PropTypes.Requireable; const lengthCounterStyle: PropTypes.Requireable; const floatingStyle: PropTypes.Requireable; const maxLength: PropTypes.Requireable; const maxLengthText: PropTypes.Requireable; const onBlur: PropTypes.Requireable<(...args: any[]) => any>; const onChangeText: PropTypes.Requireable<(...args: any[]) => any>; const onFocus: PropTypes.Requireable<(...args: any[]) => any>; const onRightIconPress: PropTypes.Requireable<(...args: any[]) => any>; const onValidate: PropTypes.Requireable<(...args: any[]) => any>; const regex: PropTypes.Requireable>; const rightIcon: PropTypes.Requireable any) | PropTypes.InferProps<{ uri: PropTypes.Requireable; }> | null | undefined>>; const rightIconStyle: PropTypes.Requireable; const style: PropTypes.Requireable; const underlineStyle: PropTypes.Requireable; const textStyle: PropTypes.Requireable; const value: PropTypes.Requireable; const floatingValue: PropTypes.Requireable; const rightComponent: PropTypes.Requireable; const inputType: PropTypes.Requireable; const formatDate: PropTypes.Requireable; const matchRegex: PropTypes.Requireable; const alwaysShowRightIcon: PropTypes.Requireable; const forceDisplayError: PropTypes.Requireable; } namespace defaultProps { const errorMessage_1: boolean; export { errorMessage_1 as errorMessage }; const matchRegex_1: boolean; export { matchRegex_1 as matchRegex }; const inputType_1: string; export { inputType_1 as inputType }; const formatDate_1: string; export { formatDate_1 as formatDate }; const alwaysShowRightIcon_1: boolean; export { alwaysShowRightIcon_1 as alwaysShowRightIcon }; } } export default UnderlineTextInput; import React from "react"; import { TextInput } from "react-native"; import PropTypes from "prop-types"; //# sourceMappingURL=UnderlineTextInput.d.ts.map