18 lines
541 B
TypeScript
18 lines
541 B
TypeScript
import { TextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
|
|
export interface FormInputProps extends Omit<TextInputProps, 'style'> {
|
|
label?: string;
|
|
value: string;
|
|
onChangeText: (text: string) => void;
|
|
placeholder?: string;
|
|
required?: boolean;
|
|
multiline?: boolean;
|
|
leftIcon?: React.ReactNode;
|
|
rightIcon?: React.ReactNode;
|
|
prefix?: string;
|
|
prefixStyle?: StyleProp<TextStyle>;
|
|
containerStyle?: StyleProp<ViewStyle>;
|
|
inputContainerStyle?: StyleProp<ViewStyle>;
|
|
inputStyle?: StyleProp<TextStyle>;
|
|
}
|