16 lines
471 B
TypeScript

import { TextInputProps, ViewStyle, StyleProp } from 'react-native';
export interface CustomInputProps extends TextInputProps {
label?: string;
isPassword?: boolean;
rightActionText?: string;
onRightActionPress?: () => void;
error?: string;
style?: StyleProp<ViewStyle>;
/**
* Optional element rendered at the start of the input, before the
* TextInput itself — e.g. a country-code chip ("+91") or an icon.
*/
leftElement?: React.ReactNode;
}