UNPKG

3.71 kBTypeScriptView Raw
1import React from 'react';
2import { TouchableOpacityProps, TouchableNativeFeedbackProps, ViewStyle, StyleProp, TextStyle, ImageProps, ImageSourcePropType } from 'react-native';
3import { IconObject, IconProps } from '../icons/Icon';
4import { RneFunctionComponent } from '../helpers';
5export declare type TileProps = TouchableOpacityProps & TouchableNativeFeedbackProps & {
6 title?: string;
7 icon?: IconObject & IconProps;
8 caption?: React.ReactNode;
9 imageSrc?: ImageSourcePropType | string | number;
10 activeOpacity?: number;
11 containerStyle?: StyleProp<ViewStyle>;
12 imageContainerStyle?: StyleProp<ViewStyle>;
13 iconContainerStyle?: StyleProp<ViewStyle>;
14 overlayContainerStyle?: StyleProp<ViewStyle>;
15 titleStyle?: StyleProp<TextStyle>;
16 captionStyle?: StyleProp<TextStyle>;
17 width?: number;
18 height?: number;
19 featured?: boolean;
20 contentContainerStyle?: StyleProp<ViewStyle>;
21 titleNumberOfLines?: number;
22 imageProps?: Partial<ImageProps>;
23 ImageComponent?: typeof React.Component;
24};
25declare const Tile: RneFunctionComponent<TileProps>;
26export { Tile };
27declare const _default: React.FunctionComponent<Omit<TouchableOpacityProps & TouchableNativeFeedbackProps & {
28 title?: string;
29 icon?: IconObject & import("react-native-vector-icons/Icon").IconButtonProps & {
30 type?: string;
31 Component?: typeof React.Component;
32 reverse?: boolean;
33 raised?: boolean;
34 containerStyle?: StyleProp<ViewStyle>;
35 iconProps?: import("react-native-vector-icons/Icon").IconProps;
36 reverseColor?: string;
37 disabled?: boolean;
38 disabledStyle?: StyleProp<ViewStyle>;
39 solid?: boolean;
40 brand?: boolean;
41 };
42 caption?: React.ReactNode;
43 imageSrc?: string | ImageSourcePropType;
44 activeOpacity?: number;
45 containerStyle?: StyleProp<ViewStyle>;
46 imageContainerStyle?: StyleProp<ViewStyle>;
47 iconContainerStyle?: StyleProp<ViewStyle>;
48 overlayContainerStyle?: StyleProp<ViewStyle>;
49 titleStyle?: StyleProp<TextStyle>;
50 captionStyle?: StyleProp<TextStyle>;
51 width?: number;
52 height?: number;
53 featured?: boolean;
54 contentContainerStyle?: StyleProp<ViewStyle>;
55 titleNumberOfLines?: number;
56 imageProps?: Partial<ImageProps>;
57 ImageComponent?: typeof React.Component;
58} & Partial<import("../config").ThemeProps<TileProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<TouchableOpacityProps & TouchableNativeFeedbackProps & {
59 title?: string;
60 icon?: IconObject & import("react-native-vector-icons/Icon").IconButtonProps & {
61 type?: string;
62 Component?: typeof React.Component;
63 reverse?: boolean;
64 raised?: boolean;
65 containerStyle?: StyleProp<ViewStyle>;
66 iconProps?: import("react-native-vector-icons/Icon").IconProps;
67 reverseColor?: string;
68 disabled?: boolean;
69 disabledStyle?: StyleProp<ViewStyle>;
70 solid?: boolean;
71 brand?: boolean;
72 };
73 caption?: React.ReactNode;
74 imageSrc?: string | ImageSourcePropType;
75 activeOpacity?: number;
76 containerStyle?: StyleProp<ViewStyle>;
77 imageContainerStyle?: StyleProp<ViewStyle>;
78 iconContainerStyle?: StyleProp<ViewStyle>;
79 overlayContainerStyle?: StyleProp<ViewStyle>;
80 titleStyle?: StyleProp<TextStyle>;
81 captionStyle?: StyleProp<TextStyle>;
82 width?: number;
83 height?: number;
84 featured?: boolean;
85 contentContainerStyle?: StyleProp<ViewStyle>;
86 titleNumberOfLines?: number;
87 imageProps?: Partial<ImageProps>;
88 ImageComponent?: typeof React.Component;
89} & Partial<import("../config").ThemeProps<TileProps>>>;
90export default _default;