react-native-modern-elements
Version:
A modern, customizable UI component library for React Native
27 lines (26 loc) • 843 B
TypeScript
import { StyleProp, TextInput, TextInputProps, TextProps, TextStyle, TouchableOpacityProps, ViewStyle } from "react-native";
export interface InputProps extends TextInputProps {
icon?: React.ReactNode;
containerStyle?: StyleProp<ViewStyle>;
inputStyle?: StyleProp<TextStyle>;
inputRef?: React.RefObject<TextInput>;
secureTextEntry?: boolean;
cancellIcon?: any;
}
export interface CustomButtonProps extends TouchableOpacityProps {
style?: StyleProp<ViewStyle>;
onPress?: () => void;
loading?: boolean;
children: React.ReactNode;
disabled?: boolean;
className?: string;
}
export type TypoProps = {
size?: number;
color?: string;
fontWeight?: TextStyle["fontWeight"];
children: any | null;
style?: StyleProp<TextStyle>;
textProps?: TextProps;
numberOfLines?: number;
};