UNPKG

@td-design/react-native

Version:

react-native UI组件库

27 lines 977 B
import React, { ReactNode } from 'react'; import { StyleProp, TextInput, TextInputProps, ViewStyle } from 'react-native'; export interface TextAreaProps extends Omit<TextInputProps, 'placeholderTextColor' | 'onChange' | 'onChangeText' | 'style'> { /** 标签 */ label?: ReactNode; /** 是否必填 */ required?: boolean; /** 值 */ value?: string; /** 输入改变事件 */ onChange?: (value: string) => void; /** 文本域高度 */ height?: number; /** 文本长度限制 */ limit?: number; /** 是否有边框 */ border?: boolean; /** 自定义样式 */ style?: StyleProp<ViewStyle>; /** 额外内容 */ brief?: ReactNode; /** 在表单项里时 label 的高度应该要跟其他的高度保持一致 */ itemHeight?: number; } declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<TextInput>>; export default TextArea; //# sourceMappingURL=TextArea.d.ts.map