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

28 lines (27 loc) 919 B
import React from 'react'; import { TextInput, TextInputProps } from 'react-native'; import { ForwardRefInjectedProps } from '../../commons/new'; import { ColorType } from './types'; export interface InputProps extends Omit<TextInputProps, 'placeholderTextColor'>, Omit<React.ComponentPropsWithRef<typeof TextInput>, 'placeholderTextColor'> { /** * A hint text to display when focusing the field */ hint?: string; /** * Input color */ color?: ColorType; /** * placeholder text color */ placeholderTextColor?: ColorType; /** * Custom formatter for the input value (used only when input if not focused) */ formatter?: (value?: string) => string | undefined; } declare const Input: { ({ style, hint, color, forwardedRef, formatter, ...props }: InputProps & ForwardRefInjectedProps): JSX.Element; displayName: string; }; export default Input;