@td-design/react-native
Version:
react-native UI组件库
26 lines • 1 kB
TypeScript
import React, { ReactNode } from 'react';
import { StyleProp, TextInput, TextInputProps, TextStyle, ViewStyle } from 'react-native';
export interface InputItemProps extends Omit<TextInputProps, 'placeholderTextColor' | 'onChange' | 'onChangeText' | 'style'> {
/** 输入类型。文本输入或者密码输入 */
inputType?: 'input' | 'password';
/** 输入框自定义样式 */
inputStyle?: StyleProp<TextStyle>;
/** 左侧图标 */
left?: ReactNode;
/** 右侧内容 */
right?: ReactNode;
/** 是否显示清除图标 */
allowClear?: boolean;
/** 值 */
value?: string;
/** 输入改变事件 */
onChange?: (value: string) => void;
/** 清除内容 */
onClear?: () => void;
/** 容器自定义样式 */
style?: StyleProp<ViewStyle>;
inForm?: boolean;
}
declare const InputItem: React.ForwardRefExoticComponent<InputItemProps & React.RefAttributes<TextInput>>;
export default InputItem;
//# sourceMappingURL=InputItem.d.ts.map