@janiscommerce/ui-native
Version:
components library for Janis app
32 lines (31 loc) • 892 B
TypeScript
import React from 'react';
import { TextInput, KeyboardType, TextStyle } from 'react-native';
import { Status } from './utils';
export declare enum keyboardTypes {
default = "default",
numberPad = "number-pad",
decimalPad = "decimal-pad",
numeric = "numeric",
emailAddress = "email-address",
phonePad = "phone-pad",
url = "url"
}
interface InputProps {
disabled?: boolean;
readOnly?: boolean;
label: string;
placeholder: string;
value?: number | string;
inputColor?: string;
valueColor?: string;
status?: Status;
statusMessage?: string;
keyboardType?: KeyboardType;
onChange?: () => void;
onSubmitEditing?: () => void;
onFocus?: () => void;
onBlur?: () => void;
style?: TextStyle;
}
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<TextInput>>;
export default Input;